示例#1
0
        public StartupTest(IHostingEnvironment env)
        {
            var builder = new ConfigurationBuilder();

            Configuration = builder.Build();

            ApplicationLogging.InitializeWithBasicConfiguration();

            Log.Information("Finishing up in ASP.NET Core Startup method!");
        }
示例#2
0
        public Startup(IHostingEnvironment env)
        {
            var builder = new ConfigurationBuilder()
                          .SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile("appsettings.json", true, true)
                          .AddEnvironmentVariables();

            Configuration = builder.Build();

            ApplicationLogging.InitializeWithBasicConfiguration();
        }