style: format SetAsync call to single line in sample Program

This commit is contained in:
Stevan Freeborn
2026-04-02 20:49:28 -05:00
parent 0eefe1ce6a
commit b61454b118
@@ -44,10 +44,7 @@ Console.WriteLine($"IOptions: {options.Value}");
Console.WriteLine($"IOptionsSnapshot 1: {firstSnapshot.Value}");
Console.WriteLine($"IOptionsMonitor: {optionsMonitor.CurrentValue}");
await secureConfig.SetAsync(
nameof(ApiOptions),
new ApiOptions { ApiKey = Guid.NewGuid().ToString() }
);
await secureConfig.SetAsync(nameof(ApiOptions), new ApiOptions { ApiKey = Guid.NewGuid().ToString() });
var config = (IConfigurationRoot)app.Services.GetRequiredService<IConfiguration>();
config.Reload();