DataProtectionAdvancedExtensions.ToTimeLimitedDataProtector 方法

定义

IDataProtector 转换为 , ITimeLimitedDataProtector 以便可以在有限的生存期内保护有效负载。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::ITimeLimitedDataProtector ^ ToTimeLimitedDataProtector(Microsoft::AspNetCore::DataProtection::IDataProtector ^ protector);
public static Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector ToTimeLimitedDataProtector (this Microsoft.AspNetCore.DataProtection.IDataProtector protector);
static member ToTimeLimitedDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtector -> Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector
<Extension()>
Public Function ToTimeLimitedDataProtector (protector As IDataProtector) As ITimeLimitedDataProtector

参数

protector
IDataProtector

IDataProtector 转换为限时保护器的 。

返回

ITimeLimitedDataProtector

适用于