3 references to Validate
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieExtensions.cs (1)
80builder.Services.AddOptions<CookieAuthenticationOptions>(authenticationScheme).Validate(o => o.Cookie.Expiration == null, "Cookie.Expiration is ignored, use ExpireTimeSpan instead.");
Microsoft.AspNetCore.HttpOverrides (1)
CertificateForwardingServiceExtensions.cs (1)
26services.AddOptions<CertificateForwardingOptions>().Validate(o => !string.IsNullOrEmpty(o.CertificateHeader), "CertificateForwarderOptions.CertificateHeader cannot be null or empty.");
Microsoft.Extensions.Options (1)
OptionsBuilder.cs (1)
344=> Validate(validation: validation, failureMessage: DefaultValidationFailureMessage);