colinin / Abp.Aliyun

专门为 ABP vNext 框架开发的阿里云 SDK 模块。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Abp.Aliyun

NuGet NuGet Download

专门为 ABP vNext 框架开发的阿里云 SDK 模块。

一、简要介绍

EasyAbp.Abp.Aliyun 库是针对于阿里云 API 进行了二次封装模块,与 ABP vNext 框架深度集成。

二、基本配置

开发人员根据自身项目情况,选择需要使用的模块。例如我需要使用阿里云的短信服务,首先需要添加 EasyAbp.Abp.Aliyun.Sms 库的引用。添加完成之后,在任意 AbpModule 上面注明 DependsOn 依赖,并在任意生命周期通过 Configure<TOptions>() 方法配置对应的 Options。

[DependsOn(typeof(AbpAliyunSmsModule))]
public class TestWebModule : AbpModule
{
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpAliyunOptions>(op =>
            {
                // 阿里云 API 的访问 Id。
                op.AccessKeyId = "Key";
                // 阿里云 API 的访问密钥。
                op.AccessKeySecret = "Secret";
            });
        }
}

三、API 使用说明

About

专门为 ABP vNext 框架开发的阿里云 SDK 模块。

License:MIT License


Languages

Language:C# 100.0%