DataProtectionBuilderExtensions.PersistKeysToFileSystem(IDataProtectionBuilder, DirectoryInfo) DataProtectionBuilderExtensions.PersistKeysToFileSystem(IDataProtectionBuilder, DirectoryInfo) DataProtectionBuilderExtensions.PersistKeysToFileSystem(IDataProtectionBuilder, DirectoryInfo) Method

Definition

Configures the data protection system to persist keys to the specified directory. This path may be on the local machine or may point to a UNC share.

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToFileSystem (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, System.IO.DirectoryInfo directory);
static member PersistKeysToFileSystem : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * System.IO.DirectoryInfo -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToFileSystem (builder As IDataProtectionBuilder, directory As DirectoryInfo) As IDataProtectionBuilder
Parameters
directory
DirectoryInfo DirectoryInfo DirectoryInfo

The directory in which to store keys.

Returns

A reference to the IDataProtectionBuilder after this operation has completed.

Applies to