SecurityStampValidatorOptions.OnRefreshingPrincipal 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当默认安全标记验证程序替换 Cookie 中的用户的 ClaimsPrincipal 时调用。
public:
property Func<Microsoft::AspNetCore::Identity::SecurityStampRefreshingPrincipalContext ^, System::Threading::Tasks::Task ^> ^ OnRefreshingPrincipal { Func<Microsoft::AspNetCore::Identity::SecurityStampRefreshingPrincipalContext ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Identity::SecurityStampRefreshingPrincipalContext ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Identity.SecurityStampRefreshingPrincipalContext,System.Threading.Tasks.Task> OnRefreshingPrincipal { get; set; }
public Func<Microsoft.AspNetCore.Identity.SecurityStampRefreshingPrincipalContext,System.Threading.Tasks.Task>? OnRefreshingPrincipal { get; set; }
member this.OnRefreshingPrincipal : Func<Microsoft.AspNetCore.Identity.SecurityStampRefreshingPrincipalContext, System.Threading.Tasks.Task> with get, set
Public Property OnRefreshingPrincipal As Func(Of SecurityStampRefreshingPrincipalContext, Task)