static void Main(string[] args) { CompanyHostBuilder.Create() .UseKestrel() .UseSwagger() .BuildWebHost(args) .Run(); }
internal static void Main(string[] args) { CompanyHostBuilder.Create() .UseKestrel() .UseSwagger() .RegisterServices(RegisterServices) .BuildWebHost(args) .Run(); }
static void Main(string[] args) { CompanyHostBuilder.Create() .UseDefaultLogging() .UseKestrel() .UseSwagger() .UseSimpleInjector() .BuildWebHost(args) .Run(); }
public static ICompanyHostBuilder Configure() { return(CompanyHostBuilder.Create() .UseHttpSys() .UseCommonModules() .UseSimpleInjector() .UseSwagger() .UseDiagnosing() .UseNtlmHttpClients() .UseNtlmAuth()); }
public static ICompanyHostBuilder Configure() { return(CompanyHostBuilder.Create() .UseKestrel() .UseCommonModules() .UseSimpleInjector() .UseSwaggerWithJwtAuth() .UseDiagnosing() .UseJwtHttpClients() .UseJwtAuth()); }
internal static void Main(string[] args) { CompanyHostBuilder.Create() .UseKestrel() .UseCommonModules() .UseSwagger() .UseCallContext() .UseSimpleInjector() .UseDiagnosing() .BuildWebHost(args) .Run(); }
internal static void Main(string[] args) { CompanyHostBuilder.Create() .UseCommonModules() .UseKestrel() .UseSwagger() .UseSimpleInjector() .UseCallContext() .UseDiagnosing() .AddOnStartAction <Listener>(x => x.StartListening()) .AddOnStopAction <Listener>(x => x.StopListening()) .BuildWebHost(args) .Run(); }