Skip to content

Instantly share code, notes, and snippets.

@richlander
Created February 27, 2018 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save richlander/f0939a5774d8903b205e1fd17f051f90 to your computer and use it in GitHub Desktop.
Save richlander/f0939a5774d8903b205e1fd17f051f90 to your computer and use it in GitHub Desktop.
Use Sockets with ASP.NET Core 2.1
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseSockets()
.UseStartup<Startup>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment