Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. public static IWebHostBuilder CreateWebHostBuilder(string[] args)
  2. {
  3. var webHost = WebHost.CreateDefaultBuilder(args)
  4. .UseStartup<Startup>();
  5.  
  6. AWSCredentials credentials = new BasicAWSCredentials("xxxx", "xxxx");
  7.  
  8. AWSOptions options = new AWSOptions()
  9. {
  10. Credentials = credentials,
  11. Region = Amazon.RegionEndpoint.USEast2
  12. };
  13.  
  14. webHost.ConfigureAppConfiguration(config =>
  15. {
  16. config.AddJsonFile("appsettings.json");
  17. config.AddSystemsManager("/ParameterPath", options, reloadAfter: new System.TimeSpan(0, 1, 0)); // Reload every minute
  18. });
  19.  
  20. return webHost;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement