style: format SetAsync call to single line in sample Program
This commit is contained in:
@@ -44,10 +44,7 @@ Console.WriteLine($"IOptions: {options.Value}");
|
|||||||
Console.WriteLine($"IOptionsSnapshot 1: {firstSnapshot.Value}");
|
Console.WriteLine($"IOptionsSnapshot 1: {firstSnapshot.Value}");
|
||||||
Console.WriteLine($"IOptionsMonitor: {optionsMonitor.CurrentValue}");
|
Console.WriteLine($"IOptionsMonitor: {optionsMonitor.CurrentValue}");
|
||||||
|
|
||||||
await secureConfig.SetAsync(
|
await secureConfig.SetAsync(nameof(ApiOptions), new ApiOptions { ApiKey = Guid.NewGuid().ToString() });
|
||||||
nameof(ApiOptions),
|
|
||||||
new ApiOptions { ApiKey = Guid.NewGuid().ToString() }
|
|
||||||
);
|
|
||||||
|
|
||||||
var config = (IConfigurationRoot)app.Services.GetRequiredService<IConfiguration>();
|
var config = (IConfigurationRoot)app.Services.GetRequiredService<IConfiguration>();
|
||||||
config.Reload();
|
config.Reload();
|
||||||
|
|||||||
Reference in New Issue
Block a user