refactor(CryptographParams): umbenannt in CryptoFactoryParams

This commit is contained in:
Developer 02
2025-01-09 22:33:56 +01:00
parent 5981ba7a8d
commit 97c4f7bf8f
3 changed files with 8 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ namespace DigitalData.Core.Security
=> services.AddSingleton<IConfigureOptions<TParams>, ParamsConfigureOptions<TParams>>();
private static IServiceCollection AddCryptoFactory(this IServiceCollection services) => services
.AddParamsConfigureOptions<CryptographParams>()
.AddParamsConfigureOptions<CryptoFactoryParams>()
.AddAutoMapper(typeof(MappingProfile).Assembly)
.AddSingleton<ICryptoFactory, CryptoFactory>();
@@ -25,7 +25,7 @@ namespace DigitalData.Core.Security
/// <param name="section"></param>
/// <returns>The updated <see cref="IServiceCollection"/> with the RSA Factory registered.</returns>
public static IServiceCollection AddCryptoFactory(this IServiceCollection services, IConfigurationSection section) => services
.Configure<CryptographParams>(section)
.Configure<CryptoFactoryParams>(section)
.AddCryptoFactory();
/// <summary>
@@ -33,8 +33,8 @@ namespace DigitalData.Core.Security
/// </summary>
/// <param name="services"></param>
/// <returns>The updated <see cref="IServiceCollection"/> with the RSA Factory registered.</returns>
public static IServiceCollection AddCryptoFactory(this IServiceCollection services, CryptographParams? asymCryptParams = null) => services
.AddSingleton(Options.Create(asymCryptParams ?? new()))
public static IServiceCollection AddCryptoFactory(this IServiceCollection services, CryptoFactoryParams? factoryParams = null) => services
.AddSingleton(Options.Create(factoryParams ?? new()))
.AddCryptoFactory();
/// <summary>