public static void AddDomainTenantResolver(this AbpTenantResolveOptions options, string domainFormat)
 {
     options.TenantResolvers.InsertAfter(
         r => r is CurrentUserTenantResolveContributor,
         new DomainTenantResolveContributor(domainFormat)
         );
 }
Пример #2
0
 public TenantResolver(IOptions <AbpTenantResolveOptions> options, IServiceProvider serviceProvider)
 {
     _serviceProvider = serviceProvider;
     _options         = options.Value;
 }