Eigenverft.WebLib.Infrastructure
  • Guides
  • API
Show / Hide Table of Contents
  • Eigenverft.WebLib.Infrastructure.Hosting.Configuration.Values
    • AspNetDataProtectionConfigurationValueCodecs
  • Eigenverft.WebLib.Infrastructure.Hosting.DirectoryLayout
    • WebApplicationBuilderFactory
  • Eigenverft.WebLib.Infrastructure.Hosting.Kestrel
    • ConfigureWebHostBuilderExtensions
  • Eigenverft.WebLib.Infrastructure.Transformations
    • AspNetDataProtectionStringTransforms

Class AspNetDataProtectionConfigurationValueCodecs

Creates configuration-value codecs backed by ASP.NET Core Data Protection.

Inheritance
object
AspNetDataProtectionConfigurationValueCodecs
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.Configuration.Values
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public static class AspNetDataProtectionConfigurationValueCodecs
Remarks

Each result is an ordinary Eigenverft.NetLib.Infrastructure.Hosting.Configuration.Values.ConfigurationValueCodec and can be used independently or at any position in Eigenverft.NetLib.Infrastructure.Hosting.Configuration.Values.ConfigurationValueCodecs.Compose(params Eigenverft.NetLib.Infrastructure.Hosting.Configuration.Values.ConfigurationValueCodec[]).

Methods

| Edit this page View Source

DataProtection(IAppDirectoryLayout, string)

Creates a Data Protection codec using the standard persistent key-ring directory and the process entry assembly as the application discriminator.

Declaration
public static ConfigurationValueCodec DataProtection(IAppDirectoryLayout directories, string purpose)
Parameters
Type Name Description
IAppDirectoryLayout directories

The registered application directory layout.

string purpose

The stable purpose isolating this protected configuration value.

Returns
Type Description
ConfigurationValueCodec
Exceptions
Type Condition
InvalidOperationException

The current process has no named entry assembly.

| Edit this page View Source

DataProtection(string, string, string)

Creates a Data Protection codec with an explicit key-ring directory, application name, and purpose.

Declaration
public static ConfigurationValueCodec DataProtection(string keyDirectoryPath, string applicationName, string purpose)
Parameters
Type Name Description
string keyDirectoryPath

The persistent Data Protection key-ring directory.

string applicationName

The stable logical application discriminator.

string purpose

The stable purpose isolating this protected configuration value.

Returns
Type Description
ConfigurationValueCodec
  • Edit this page
  • View Source
In this article
Back to top