Exemplo n.º 1
0
        public override void Initialize(string uri)
        {
            base.Initialize(uri);

            _server = new TestServer(BitWebHost.CreateDefaultBuilder(Array.Empty <string>())
                                     .UseUrls(uri)
                                     .UseStartup <AutofacAspNetCoreAppStartup>());
        }
Exemplo n.º 2
0
        public static IWebHost BuildWebHost(string[] args)
        {
            return(BitWebHost.CreateDefaultBuilder(args)
                   .UseStartup <AppStartup>()
#if DEBUG
                   .UseUrls("http://*:53148/")
#endif
                   .Build());
        }
        public override void Initialize(string uri)
        {
            base.Initialize(uri);

            _host = BitWebHost.CreateDefaultBuilder(new string[] { })
                    .UseUrls(uri)
                    .UseStartup <AutofacAspNetCoreAppStartup>()
                    .Build();

            _host.Start();
        }
Exemplo n.º 4
0
 public static IWebHost BuildWebHost(string[] args) =>
 BitWebHost.CreateDefaultBuilder(args)
 .UseStartup <AppStartup>()
 .Build();
Exemplo n.º 5
0
        public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
        BitWebHost.CreateDefaultBuilder(args)
#if DEBUG
        .UseUrls("http://*:53200/")
#endif
        .UseStartup <Startup>();
Exemplo n.º 6
0
 public static IWebHost BuildWebHost(string[] args) =>
 BitWebHost.CreateDefaultBuilder(args)
 .UseStartup <AppStartup>()
 .ConfigureServices(services => services.AddSingleton(Log.Logger))
 .UseSerilog()
 .Build();
Exemplo n.º 7
0
 public static IWebHost BuildWebHost(string[] args) =>
 BitWebHost.CreateDefaultBuilder(args)
 .UseStartup <AppStartup>()
 .ConfigureLogging(loggingBuilder => loggingBuilder.ClearProviders())
 .UseUrls(BaseAddress)
 .Build();
Exemplo n.º 8
0
 public static IWebHost BuildWebHost(string[] args) =>
 BitWebHost.CreateDefaultBuilder(args)
 .UseConfiguration(new ConfigurationBuilder().AddEnvironmentVariables().Build())
 .UseStartup <AppStartup>()
 .Build();
Exemplo n.º 9
0
 public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
 BitWebHost.CreateDefaultBuilder(args)
 .UseStartup <Startup>();