From b5cecac745399a8e886e8c6c73379c94c894171f Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 7 Jan 2025 12:19:42 +0100 Subject: [PATCH] refactor(DIExtensions): Umbenennung der Methode AddAsymCryptHandler in AddCryptograph --- DigitalData.Core.Security/DIExtensions.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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.