FileSystemXmlRepository Class

Definition

An XML repository backed by a file system.

public ref class FileSystemXmlRepository : Microsoft::AspNetCore::DataProtection::Repositories::IXmlRepository
public class FileSystemXmlRepository : Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository
public class FileSystemXmlRepository : Microsoft.AspNetCore.DataProtection.Repositories.IDeletableXmlRepository
type FileSystemXmlRepository = class
    interface IXmlRepository
type FileSystemXmlRepository = class
    interface IDeletableXmlRepository
    interface IXmlRepository
Public Class FileSystemXmlRepository
Implements IXmlRepository
Public Class FileSystemXmlRepository
Implements IDeletableXmlRepository
Inheritance
FileSystemXmlRepository
Implements

Constructors

FileSystemXmlRepository(DirectoryInfo, ILoggerFactory)

Creates a FileSystemXmlRepository with keys stored at the given directory.

FileSystemXmlRepository(DirectoryInfo, IServiceProvider)

Creates a FileSystemXmlRepository with keys stored at the given directory.

FileSystemXmlRepository(DirectoryInfo)

Creates a FileSystemXmlRepository with keys stored at the given directory.

Properties

DefaultKeyStorageDirectory

The default key storage directory. On Windows, this currently corresponds to "Environment.SpecialFolder.LocalApplication/ASP.NET/DataProtection-Keys". On Linux and macOS, this currently corresponds to "$HOME/.aspnet/DataProtection-Keys".

Directory

The directory into which key material will be written.

Services

The IServiceProvider provided to the constructor.

Methods

DeleteElements(Action<IReadOnlyCollection<IDeletableElement>>)

Deletes selected elements from the repository.

GetAllElements()

Gets all top-level XML elements in the repository.

StoreElement(XElement, String)

Adds a top-level XML element to the repository.

Applies to