I want to use the WaitForSystemsManagerReloadToComplete() Extensions as documented in the "Reloading in AWS Lambda" section of this Read Me.
I believe I have written the right syntax to call it but since it is not an easy process to test I wanted to confirm the syntax. The code:
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args)
{
return WebHost.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(builder =>
{
builder
.AddSystemsManager("/AppName")
.Build()
.WaitForSystemsManagerReloadToComplete(TimeSpan.FromSeconds(5));
})
.UseStartup<Startup>();
}
}
My concern is that I although I call WaitForSystemsManagerReloadToComplete() in the Lambda Expression, I'm wondering if it affects the executing thread as designed.