public string GetTenantId() { var apiKey = _service?.GetCurrentTenant(_httpContext); Guid apiKeyGuid; if (!Guid.TryParse(apiKey, out apiKeyGuid)) { return(null); } return(apiKey); }
public string GetCurrentTenant() { return(_service.GetCurrentTenant(_httpContext)); }
private TenantIdentificationServiceTests AndGetCurrentTenantIsInvoked() { _tenant = _service.GetCurrentTenant(_httpContext); return(this); }
public Tenant GetCurrentTenant() { var tenantName = _service.GetCurrentTenant(_httpContext); return(_configuration.GetTenant(tenantName)); }
public async Task <School> GetCurrentTenant() { return(await _service.GetCurrentTenant()); }