Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static IWebHostBuilder CreateWebHostBuilder(string[] args)
- {
- var webHost = WebHost.CreateDefaultBuilder(args)
- .UseStartup<Startup>();
- AWSCredentials credentials = new BasicAWSCredentials("xxxx", "xxxx");
- AWSOptions options = new AWSOptions()
- {
- Credentials = credentials,
- Region = Amazon.RegionEndpoint.USEast2
- };
- webHost.ConfigureAppConfiguration(config =>
- {
- config.AddJsonFile("appsettings.json");
- config.AddSystemsManager("/ParameterPath", options, reloadAfter: new System.TimeSpan(0, 1, 0)); // Reload every minute
- });
- return webHost;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement