This commit is contained in:
@@ -42,6 +42,10 @@ internal static class NetworkConfigurationExtensions
|
||||
.Bind(configuration.GetSection("TenantDomains"))
|
||||
.Validate(options => environment.IsDevelopment() || !options.EnableDevelopmentLocalhostBypass,
|
||||
"The .localhost domain lifecycle bypass can only be enabled in Development.")
|
||||
.Validate(options => options.PollSeconds is >= 1 and <= 3600 &&
|
||||
options.MaxIdlePollSeconds is >= 1 and <= 3600 &&
|
||||
options.MaxIdlePollSeconds >= options.PollSeconds,
|
||||
"Tenant domain polling intervals are invalid.")
|
||||
.ValidateOnStart();
|
||||
if (environment.IsDevelopment()) services.AddHostedService<DevelopmentTenantDomainLifecycleHostedService>();
|
||||
services.AddOptions<TenantProvisioningOptions>()
|
||||
@@ -111,4 +115,4 @@ internal static class NetworkConfigurationExtensions
|
||||
(developmentOrigin.Scheme == Uri.UriSchemeHttp ||
|
||||
developmentOrigin.Scheme == Uri.UriSchemeHttps);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user