first commit
This commit is contained in:
		| @ -0,0 +1,38 @@ | ||||
| using Microsoft.Extensions.DependencyInjection; | ||||
| using Volo.Abp.Account; | ||||
| using Volo.Abp.FeatureManagement; | ||||
| using Volo.Abp.Identity; | ||||
| using Volo.Abp.Modularity; | ||||
| using Volo.Abp.PermissionManagement; | ||||
| using Volo.Abp.TenantManagement; | ||||
| using Volo.Abp.SettingManagement; | ||||
| using Volo.Abp.VirtualFileSystem; | ||||
|  | ||||
| namespace KonSoft.Dispatch; | ||||
|  | ||||
| [DependsOn( | ||||
|     typeof(DispatchApplicationContractsModule), | ||||
|     typeof(AbpAccountHttpApiClientModule), | ||||
|     typeof(AbpIdentityHttpApiClientModule), | ||||
|     typeof(AbpPermissionManagementHttpApiClientModule), | ||||
|     typeof(AbpTenantManagementHttpApiClientModule), | ||||
|     typeof(AbpFeatureManagementHttpApiClientModule), | ||||
|     typeof(AbpSettingManagementHttpApiClientModule) | ||||
| )] | ||||
| public class DispatchHttpApiClientModule : AbpModule | ||||
| { | ||||
|     public const string RemoteServiceName = "Default"; | ||||
|  | ||||
|     public override void ConfigureServices(ServiceConfigurationContext context) | ||||
|     { | ||||
|         context.Services.AddHttpClientProxies( | ||||
|             typeof(DispatchApplicationContractsModule).Assembly, | ||||
|             RemoteServiceName | ||||
|         ); | ||||
|  | ||||
|         Configure<AbpVirtualFileSystemOptions>(options => | ||||
|         { | ||||
|             options.FileSets.AddEmbedded<DispatchHttpApiClientModule>(); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user