fail startup when the quick connect store is unreachable
Read the configured quick connect store during InitializeServices and abort startup, with a log line naming valkey, instead of coming up and failing on the first request that needs the store.
This commit is contained in:
@@ -21,8 +21,9 @@ public static class QuickConnectStoreServiceCollectionExtensions
|
||||
/// <remarks>
|
||||
/// The connection string is only set for a multi-instance deployment, which is the only shape where
|
||||
/// the initiate, authorize and exchange legs of one flow can land on different instances. Set but
|
||||
/// unreachable is a misconfigured deployment rather than a single-instance one, so it fails rather
|
||||
/// than quietly handing out a store the other instances cannot see.
|
||||
/// unreachable is a misconfigured deployment rather than a single-instance one, so the store is read
|
||||
/// once during startup and an unreachable one stops the server coming up, rather than quietly handing
|
||||
/// out a store the other instances cannot see.
|
||||
/// </remarks>
|
||||
/// <param name="serviceCollection">The service collection.</param>
|
||||
/// <param name="configuration">The configuration to read the Redis connection string from.</param>
|
||||
|
||||
Reference in New Issue
Block a user