예제 #1
0
        /// <summary>
        /// Get the current tenant
        /// </summary>
        /// <returns></returns>
        public async Task <T> GetTenantAsync()
        {
            var tenantIdentifier = await _tenantResolutionStrategy.GetHostAsync();

            return(await _tenantProvider.GetTenantAsync(tenantIdentifier, cancellationToken : CancellationToken.None));
        }