public Startup(IConfiguration configuration) { Configuration = configuration; //Initialize resource types ResourceTypes.Initialize(); }
public Startup(IHostingEnvironment env) { var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true) .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true) .AddEnvironmentVariables(); Configuration = builder.Build(); //Initialize ResourceTypes ResourceTypes.Initialize(); ActionTypes.Initialize(); }
public TestStartup(IHostingEnvironment env) { var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddInMemoryCollection(new Dictionary <string, string> { { "EventStore:Host", "" }, { "EventStore:Stream", "test" } }) .AddEnvironmentVariables(); Configuration = builder.Build(); //Initialize resource types ResourceTypes.Initialize(); }