EgonMilanVotrubec

Server/Program.cs

Nov 28th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using Microsoft.AspNetCore;
  2. using Microsoft.AspNetCore.Hosting;
  3.  
  4. namespace Server
  5. {
  6.     public class Program
  7.     {
  8.         public static void Main ( string [ ] args )
  9.         {
  10.             CreateWebHost ( args ).Run ( );
  11.         }
  12.  
  13.         public static IWebHost CreateWebHost ( string [ ] args ) =>
  14.             WebHost.CreateDefaultBuilder ( args )
  15.                 .UseStartup<Startup> ( )
  16.                 .UseUrls ( "http://*:53253" )
  17.                 .Build ( );
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment