Example #1
0
        public override void Initialize(string uri)
        {
            base.Initialize(uri);

            _server = new TestServer(BitWebHost.CreateDefaultBuilder(Array.Empty <string>())
                                     .UseUrls(uri)
                                     .UseStartup <AutofacAspNetCoreAppStartup>());
        }
Example #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();
        }
Example #4
0
 public static IWebHost BuildWebHost(string[] args) =>
 BitWebHost.CreateDefaultBuilder(args)
 .UseStartup <AppStartup>()
 .Build();
Example #5
0
        public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
        BitWebHost.CreateDefaultBuilder(args)
#if DEBUG
        .UseUrls("http://*:53200/")
#endif
        .UseStartup <Startup>();
Example #6
0
 public static IWebHost BuildWebHost(string[] args) =>
 BitWebHost.CreateDefaultBuilder(args)
 .UseStartup <AppStartup>()
 .ConfigureServices(services => services.AddSingleton(Log.Logger))
 .UseSerilog()
 .Build();
Example #7
0
 public static IWebHost BuildWebHost(string[] args) =>
 BitWebHost.CreateDefaultBuilder(args)
 .UseStartup <AppStartup>()
 .ConfigureLogging(loggingBuilder => loggingBuilder.ClearProviders())
 .UseUrls(BaseAddress)
 .Build();
Example #8
0
 public static IWebHost BuildWebHost(string[] args) =>
 BitWebHost.CreateDefaultBuilder(args)
 .UseConfiguration(new ConfigurationBuilder().AddEnvironmentVariables().Build())
 .UseStartup <AppStartup>()
 .Build();
Example #9
0
 public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
 BitWebHost.CreateDefaultBuilder(args)
 .UseStartup <Startup>();