1 Answer(s)
-
0
hi
You can do your custom business in the CreateTenant() method of TenantAppService class.
[AbpAuthorize(AppPermissions.Pages_Tenants_Create)] [UnitOfWork(IsDisabled = true)] public async Task CreateTenant(CreateTenantInput input) { await TenantManager.CreateWithAdminUserAsync(input.TenancyName, input.Name, input.AdminPassword, input.AdminEmailAddress, input.ConnectionString, input.IsActive, input.EditionId, input.ShouldChangePasswordOnNextLogin, input.SendActivationEmail, input.SubscriptionEndDateUtc?.ToUniversalTime(), input.IsInTrialPeriod, AppUrlService.CreateEmailActivationUrlFormat(input.TenancyName) ); /*DO YOUR WORK*/ }
<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/83eff51182e47604f60621ac377e3addbdf76a1a/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/MultiTenancy/TenantAppService.cs#L54">https://github.com/aspnetzero/aspnet-ze ... ice.cs#L54</a>