From 19c90d2c30e84edf53824c0088f0e0553dc6f65a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 4 Mar 2020 20:17:55 +0300 Subject: [PATCH] Depend on AbpIdentityEntityFrameworkCoreModule from the TenantManagementServiceHostModule --- .../TenantManagementService.Host.csproj | 1 + .../TenantManagementServiceHostModule.cs | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementService.Host.csproj b/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementService.Host.csproj index 078c067cf1..653eee189b 100644 --- a/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementService.Host.csproj +++ b/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementService.Host.csproj @@ -29,6 +29,7 @@ + diff --git a/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs b/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs index 9128fdd720..b60daf710e 100644 --- a/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs +++ b/samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs @@ -15,6 +15,7 @@ using Volo.Abp.Autofac; using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore.SqlServer; using Volo.Abp.EventBus.RabbitMq; +using Volo.Abp.Identity.EntityFrameworkCore; using Volo.Abp.Localization; using Volo.Abp.Modularity; using Volo.Abp.MultiTenancy; @@ -36,7 +37,12 @@ namespace TenantManagementService.Host typeof(AbpTenantManagementHttpApiModule), typeof(AbpTenantManagementEntityFrameworkCoreModule), typeof(AbpTenantManagementApplicationModule), - typeof(AbpAspNetCoreMultiTenancyModule) + typeof(AbpAspNetCoreMultiTenancyModule), + + /* TODO: Using the Identity domain here is not so good. + It is needed to create admin role and user for newly created tenants. + We can convert this to a distributed event subscribed by the IdentityService */ + typeof(AbpIdentityEntityFrameworkCoreModule) )] public class TenantManagementServiceHostModule : AbpModule {