aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretServiceCollectionExtensions.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-19 12:24:54 +0800
committercrupest <crupest@outlook.com>2022-12-20 20:32:53 +0800
commit88477dffdd0811a5613dba0aa1db4818bf4fd058 (patch)
tree1e431c0b2038cde586be12cfb96c6c2da75b11e8 /docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretServiceCollectionExtensions.cs
parent2efc4f7ea0784a504ce50207a19a8899a121f8cd (diff)
downloadcrupest-88477dffdd0811a5613dba0aa1db4818bf4fd058.tar.gz
crupest-88477dffdd0811a5613dba0aa1db4818bf4fd058.tar.bz2
crupest-88477dffdd0811a5613dba0aa1db4818bf4fd058.zip
Develop secret api. v43
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretServiceCollectionExtensions.cs')
-rw-r--r--docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretServiceCollectionExtensions.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretServiceCollectionExtensions.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretServiceCollectionExtensions.cs
new file mode 100644
index 0000000..a9c0e5f
--- /dev/null
+++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretServiceCollectionExtensions.cs
@@ -0,0 +1,12 @@
+using Microsoft.Extensions.DependencyInjection.Extensions;
+
+namespace CrupestApi.Commons.Secrets;
+
+public static class SecretServiceCollectionExtensions
+{
+ public static IServiceCollection AddSecrets(this IServiceCollection services)
+ {
+ services.TryAddScoped<ISecretService, SecretService>();
+ return services;
+ }
+}