Share via


DataProtectionBuilderExtensions.UseEphemeralDataProtectionProvider 方法

定义

将数据保护系统配置为将 用于 EphemeralDataProtectionProvider 数据保护服务。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseEphemeralDataProtectionProvider(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseEphemeralDataProtectionProvider (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder);
static member UseEphemeralDataProtectionProvider : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseEphemeralDataProtectionProvider (builder As IDataProtectionBuilder) As IDataProtectionBuilder

参数

返回

此操作完成后对 IDataProtectionBuilder 的引用。

注解

如果使用此选项,则应用程序退出后,数据保护系统保护的有效负载将永久不可加密。

适用于