From 3f1abae89b12af3158d88981067fa6497bf658ef Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Wed, 8 Apr 2020 14:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0AES=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E9=9B=86=E5=90=88=E6=B3=A8=E5=86=8C=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Falcon.Extend/Falcon.Extend.csproj | 2 +- Falcon.Extend/ServiceCollectionExtend.cs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Falcon.Extend/Falcon.Extend.csproj b/Falcon.Extend/Falcon.Extend.csproj index 9798c1d..757ffcf 100644 --- a/Falcon.Extend/Falcon.Extend.csproj +++ b/Falcon.Extend/Falcon.Extend.csproj @@ -3,7 +3,7 @@ netstandard2.0;netstandard2.1 true - 1.0.1 + 1.2.1 bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml http://39.105.71.191/Falcon/Falcon.Extend http://39.105.71.191/Falcon/Falcon.Extend diff --git a/Falcon.Extend/ServiceCollectionExtend.cs b/Falcon.Extend/ServiceCollectionExtend.cs index 342fb0d..0b2be85 100644 --- a/Falcon.Extend/ServiceCollectionExtend.cs +++ b/Falcon.Extend/ServiceCollectionExtend.cs @@ -34,5 +34,15 @@ namespace Falcon.Extend public static IServiceCollection AddMsJsonProvider(this IServiceCollection services) { return services.AddSingleton(); } + + /// + /// 注册AES加密解密组件提供ICryptoService服务 + /// + /// 服务集合 + /// 服务集合 + public static IServiceCollection AddAESCrypto(this IServiceCollection services) { + services.AddSingleton(); + return services; + } } }