diff --git a/DigitalData.Core.Security/DIExtensions.cs b/DigitalData.Core.Security/DIExtensions.cs index d5a2485..09b1ab8 100644 --- a/DigitalData.Core.Security/DIExtensions.cs +++ b/DigitalData.Core.Security/DIExtensions.cs @@ -13,7 +13,7 @@ namespace DigitalData.Core.Security private static IServiceCollection AddParamsConfigureOptions(this IServiceCollection services) where TParams : RSAFactoryParams => services.AddSingleton, ParamsConfigureOptions>(); - private static IServiceCollection AddAsymCryptHandler(this IServiceCollection services) => services + private static IServiceCollection AddCryptograph(this IServiceCollection services) => services .AddParamsConfigureOptions() .AddAutoMapper(typeof(MappingProfile).Assembly) .AddSingleton(); @@ -24,18 +24,18 @@ namespace DigitalData.Core.Security /// /// /// The updated with the RSA Factory registered. - public static IServiceCollection AddAsymCryptHandler(this IServiceCollection services, IConfigurationSection section) => services + public static IServiceCollection AddCryptograph(this IServiceCollection services, IConfigurationSection section) => services .Configure(section) - .AddAsymCryptHandler(); + .AddCryptograph(); /// /// Registers an asym crypt service with the specified parameters from the given instance. /// /// /// The updated with the RSA Factory registered. - public static IServiceCollection AddAsymCryptHandler(this IServiceCollection services, CryptographParams? asymCryptParams = null) => services + public static IServiceCollection AddCryptograph(this IServiceCollection services, CryptographParams? asymCryptParams = null) => services .AddSingleton(Options.Create(asymCryptParams ?? new())) - .AddAsymCryptHandler(); + .AddCryptograph(); /// /// Registers a custom RSA Factory with specified parameters from the given configuration section.