From d4965b0f5698d410958aeb3726309c0b18630569 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Fri, 26 Apr 2019 14:30:22 -0700 Subject: [PATCH] IdentityUI: Switch some cookie options to Configure (#9529) --- src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs b/src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs index 0a35d53a27..3ef8438ba5 100644 --- a/src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs +++ b/src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs @@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Identity.UI internal class IdentityDefaultUIConfigureOptions : IPostConfigureOptions, IPostConfigureOptions, - IPostConfigureOptions where TUser : class + IConfigureNamedOptions where TUser : class { private const string IdentityUIDefaultAreaName = "Identity"; @@ -72,7 +72,9 @@ namespace Microsoft.AspNetCore.Identity.UI options.FileProvider = new CompositeFileProvider(options.FileProvider, filesProvider); } - public void PostConfigure(string name, CookieAuthenticationOptions options) + public void Configure(CookieAuthenticationOptions options) { } + + public void Configure(string name, CookieAuthenticationOptions options) { name = name ?? throw new ArgumentNullException(nameof(name)); options = options ?? throw new ArgumentNullException(nameof(options));