DataProtectionBuilderExtensions.AddKeyEscrowSink 方法

定义

重载

AddKeyEscrowSink(IDataProtectionBuilder, IKeyEscrowSink)

注册 , IKeyEscrowSink 以在将密钥保存到存储之前执行托管。

AddKeyEscrowSink(IDataProtectionBuilder, Func<IServiceProvider,IKeyEscrowSink>)

注册 , IKeyEscrowSink 以在将密钥保存到存储之前执行托管。

AddKeyEscrowSink<TImplementation>(IDataProtectionBuilder)

注册 , IKeyEscrowSink 以在将密钥保存到存储之前执行托管。

AddKeyEscrowSink(IDataProtectionBuilder, IKeyEscrowSink)

Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs

注册 , IKeyEscrowSink 以在将密钥保存到存储之前执行托管。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ AddKeyEscrowSink(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::KeyManagement::IKeyEscrowSink ^ sink);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyEscrowSink (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink sink);
static member AddKeyEscrowSink : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function AddKeyEscrowSink (builder As IDataProtectionBuilder, sink As IKeyEscrowSink) As IDataProtectionBuilder

参数

sink
IKeyEscrowSink

要注册的 的 IKeyEscrowSink 实例。

返回

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

注解

注册是累加的。

适用于

AddKeyEscrowSink(IDataProtectionBuilder, Func<IServiceProvider,IKeyEscrowSink>)

Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs

注册 , IKeyEscrowSink 以在将密钥保存到存储之前执行托管。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ AddKeyEscrowSink(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Func<IServiceProvider ^, Microsoft::AspNetCore::DataProtection::KeyManagement::IKeyEscrowSink ^> ^ factory);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyEscrowSink (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Func<IServiceProvider,Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink> factory);
static member AddKeyEscrowSink : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Func<IServiceProvider, Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink> -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function AddKeyEscrowSink (builder As IDataProtectionBuilder, factory As Func(Of IServiceProvider, IKeyEscrowSink)) As IDataProtectionBuilder

参数

factory
Func<IServiceProvider,IKeyEscrowSink>

创建实例的 IKeyEscrowSink 工厂。

返回

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

注解

注册是累加的。 工厂注册为 Singleton

适用于

AddKeyEscrowSink<TImplementation>(IDataProtectionBuilder)

Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs

注册 , IKeyEscrowSink 以在将密钥保存到存储之前执行托管。

public:
generic <typename TImplementation>
 where TImplementation : class, Microsoft::AspNetCore::DataProtection::KeyManagement::IKeyEscrowSink[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ AddKeyEscrowSink(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyEscrowSink<TImplementation> (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder) where TImplementation : class, Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink;
static member AddKeyEscrowSink : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder (requires 'Implementation : null and 'Implementation :> Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink)
<Extension()>
Public Function AddKeyEscrowSink(Of TImplementation As {Class, IKeyEscrowSink}) (builder As IDataProtectionBuilder) As IDataProtectionBuilder

类型参数

TImplementation

要注册的 的具体 IKeyEscrowSink 类型。

参数

返回

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

注解

注册是累加的。 工厂注册为 Singleton

适用于