You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 months ago | |
|---|---|---|
| .. | ||
| LINGYUN/Abp/Saas | 4 years ago | |
| FodyWeavers.xml | 4 years ago | |
| FodyWeavers.xsd | 4 years ago | |
| LINGYUN.Abp.Saas.HttpApi.Client.csproj | 2 months ago | |
| README.EN.md | 1 year ago | |
| README.md | 1 year ago | |
README.md
LINGYUN.Abp.Saas.HttpApi.Client
SaaS HTTP API客户端模块,提供了租户和版本管理的HTTP客户端代理实现。
功能特性
- HTTP客户端代理
- ITenantAppService的HTTP客户端实现
- IEditionAppService的HTTP客户端实现
使用方式
- 安装模块
[DependsOn(typeof(AbpSaasHttpApiClientModule))]
public class YourModule : AbpModule
{
}
- 配置远程服务
{
"RemoteServices": {
"Default": {
"BaseUrl": "http://localhost:44388/"
}
}
}
- 注入并使用服务
public class YourService
{
private readonly ITenantAppService _tenantAppService;
private readonly IEditionAppService _editionAppService;
public YourService(
ITenantAppService tenantAppService,
IEditionAppService editionAppService)
{
_tenantAppService = tenantAppService;
_editionAppService = editionAppService;
}
}