diff --git a/DigitalData.Core.Security/DIExtensions.cs b/DigitalData.Core.Security/DIExtensions.cs index d1e9534..5a369a9 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 AddCryptograph(this IServiceCollection services) => services + private static IServiceCollection AddCryptoFactory(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 AddCryptograph(this IServiceCollection services, IConfigurationSection section) => services + public static IServiceCollection AddCryptoFactory(this IServiceCollection services, IConfigurationSection section) => services .Configure(section) - .AddCryptograph(); + .AddCryptoFactory(); /// /// Registers an asym crypt service with the specified parameters from the given instance. /// /// /// The updated with the RSA Factory registered. - public static IServiceCollection AddCryptograph(this IServiceCollection services, CryptographParams? asymCryptParams = null) => services + public static IServiceCollection AddCryptoFactory(this IServiceCollection services, CryptographParams? asymCryptParams = null) => services .AddSingleton(Options.Create(asymCryptParams ?? new())) - .AddCryptograph(); + .AddCryptoFactory(); /// /// Registers a custom RSA Factory with specified parameters from the given configuration section.