DataProtectionBuilderExtensions.AddKeyEscrowSink 方法

定義

多載

AddKeyEscrowSink(IDataProtectionBuilder, IKeyEscrowSink)

IKeyEscrowSink註冊 以在金鑰保存到儲存體之前執行委付。

AddKeyEscrowSink(IDataProtectionBuilder, Func<IServiceProvider,IKeyEscrowSink>)

IKeyEscrowSink註冊 以在金鑰保存到儲存體之前執行委付。

AddKeyEscrowSink<TImplementation>(IDataProtectionBuilder)

IKeyEscrowSink註冊 以在金鑰保存到儲存體之前執行委付。

AddKeyEscrowSink(IDataProtectionBuilder, IKeyEscrowSink)

來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs

IKeyEscrowSink註冊 以在金鑰保存到儲存體之前執行委付。

C#
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyEscrowSink (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink sink);

參數

sink
IKeyEscrowSink

要註冊的 IKeyEscrowSink 實例。

傳回

完成此作業之後的 IDataProtectionBuilder 參考。

備註

註冊是加總的。

適用於

ASP.NET Core 9.0 及其他版本
產品 版本
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

AddKeyEscrowSink(IDataProtectionBuilder, Func<IServiceProvider,IKeyEscrowSink>)

來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs

IKeyEscrowSink註冊 以在金鑰保存到儲存體之前執行委付。

C#
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyEscrowSink (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Func<IServiceProvider,Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink> factory);

參數

factory
Func<IServiceProvider,IKeyEscrowSink>

建立實例的 IKeyEscrowSink 處理站。

傳回

完成此作業之後的 IDataProtectionBuilder 參考。

備註

註冊是加總的。 處理站會註冊為 Singleton

適用於

ASP.NET Core 9.0 及其他版本
產品 版本
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

AddKeyEscrowSink<TImplementation>(IDataProtectionBuilder)

來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs

IKeyEscrowSink註冊 以在金鑰保存到儲存體之前執行委付。

C#
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyEscrowSink<TImplementation> (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder) where TImplementation : class, Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink;

類型參數

TImplementation

要註冊的 IKeyEscrowSink 具體型別。

參數

傳回

完成此作業之後的 IDataProtectionBuilder 參考。

備註

註冊是加總的。 處理站會註冊為 Singleton

適用於

ASP.NET Core 9.0 及其他版本
產品 版本
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0