Пример #1
0
 public static IHostBuilder CreateMiruHost <TStartup>() where TStartup : class
 {
     return(MiruHost.CreateMiruWebHost <TStartup>()
            .ConfigureWebHost(host =>
     {
         // we don't want the tests fail because there is no tcp port available
         // so here, listen to any available port
         host.UseKestrelAnyLocalPort();
     }));
 }
Пример #2
0
 public static async Task Main(string[] args) =>
 await MiruHost
 .CreateMiruWebHost <Startup>(args)
 .RunMiruAsync();
Пример #3
0
 public virtual IHostBuilder GetHostBuilder() =>
 MiruHost.CreateMiruWebHost <Startup>();
Пример #4
0
 public virtual IHostBuilder GetHostBuilder()
 {
     return(MiruHost.CreateMiruWebHost <Startup>());
 }