up
This commit is contained in:
@@ -70,7 +70,7 @@ public sealed class StellaOpsAuthorityOptions
|
||||
public IList<AuthorityTenantOptions> Tenants => tenants;
|
||||
|
||||
/// <summary>
|
||||
/// Configuration describing the Authority MongoDB storage.
|
||||
/// Configuration describing the Authority storage layer.
|
||||
/// </summary>
|
||||
public AuthorityStorageOptions Storage { get; } = new();
|
||||
|
||||
@@ -677,7 +677,7 @@ public sealed class AuthorityEndpointRateLimitOptions
|
||||
public sealed class AuthorityStorageOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Mongo connection string used by Authority storage.
|
||||
/// Connection string used by Authority storage.
|
||||
/// </summary>
|
||||
public string ConnectionString { get; set; } = string.Empty;
|
||||
|
||||
@@ -687,7 +687,7 @@ public sealed class AuthorityStorageOptions
|
||||
public string? DatabaseName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Mongo command timeout.
|
||||
/// Command timeout.
|
||||
/// </summary>
|
||||
public TimeSpan CommandTimeout { get; set; } = TimeSpan.FromSeconds(30);
|
||||
|
||||
@@ -695,7 +695,7 @@ public sealed class AuthorityStorageOptions
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(ConnectionString))
|
||||
{
|
||||
throw new InvalidOperationException("Authority storage requires a Mongo connection string.");
|
||||
throw new InvalidOperationException("Authority storage requires a connection string.");
|
||||
}
|
||||
|
||||
if (CommandTimeout <= TimeSpan.Zero)
|
||||
|
||||
Reference in New Issue
Block a user