Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     CompanyHostBuilder.Create()
     .UseKestrel()
     .UseSwagger()
     .BuildWebHost(args)
     .Run();
 }
Ejemplo n.º 2
0
 internal static void Main(string[] args)
 {
     CompanyHostBuilder.Create()
     .UseKestrel()
     .UseSwagger()
     .RegisterServices(RegisterServices)
     .BuildWebHost(args)
     .Run();
 }
Ejemplo n.º 3
0
 static void Main(string[] args)
 {
     CompanyHostBuilder.Create()
     .UseDefaultLogging()
     .UseKestrel()
     .UseSwagger()
     .UseSimpleInjector()
     .BuildWebHost(args)
     .Run();
 }
Ejemplo n.º 4
0
 public static ICompanyHostBuilder Configure()
 {
     return(CompanyHostBuilder.Create()
            .UseHttpSys()
            .UseCommonModules()
            .UseSimpleInjector()
            .UseSwagger()
            .UseDiagnosing()
            .UseNtlmHttpClients()
            .UseNtlmAuth());
 }
Ejemplo n.º 5
0
 public static ICompanyHostBuilder Configure()
 {
     return(CompanyHostBuilder.Create()
            .UseKestrel()
            .UseCommonModules()
            .UseSimpleInjector()
            .UseSwaggerWithJwtAuth()
            .UseDiagnosing()
            .UseJwtHttpClients()
            .UseJwtAuth());
 }
Ejemplo n.º 6
0
 internal static void Main(string[] args)
 {
     CompanyHostBuilder.Create()
     .UseKestrel()
     .UseCommonModules()
     .UseSwagger()
     .UseCallContext()
     .UseSimpleInjector()
     .UseDiagnosing()
     .BuildWebHost(args)
     .Run();
 }
Ejemplo n.º 7
0
 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();
 }