Skip to content

Commit

Permalink
Merge pull request #32 from IowaComputerGurus/feature/correcting-di
Browse files Browse the repository at this point in the history
Correcting DI for derived key encryption service
  • Loading branch information
mitchelsellers authored Jan 22, 2023
2 parents 179fa4d + b1b227a commit cc1d273
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ public static void UseIcgNetCoreUtilities(this IServiceCollection services, ICon
services.AddTransient<IFileProvider, FileProvider>();
services.AddTransient<IDirectoryProvider, DirectoryProvider>();
services.AddTransient<IAesEncryptionService, AesEncryptionService>();

services.AddTransient<IAesDerivedKeyEncryptionService, AesDerivedKeyEncryptionService>();
services.Configure<AesEncryptionServiceOptions>(configuration.GetSection(nameof(AesEncryptionServiceOptions)));
services.Configure<AesDerivedKeyEncryptionServiceOptions>(configuration.GetSection(nameof(AesDerivedKeyEncryptionServiceOptions)));

}
}
Expand Down

0 comments on commit cc1d273

Please sign in to comment.