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(); })); }
public static async Task Main(string[] args) => await MiruHost .CreateMiruWebHost <Startup>(args) .RunMiruAsync();
public virtual IHostBuilder GetHostBuilder() => MiruHost.CreateMiruWebHost <Startup>();
public virtual IHostBuilder GetHostBuilder() { return(MiruHost.CreateMiruWebHost <Startup>()); }