public async Task <string> Get(string businessId) { if (!m_organizationMappings.ContainsKey(businessId)) { m_organizationMappings.Add(businessId, await m_decorated.Get(businessId)); } return(m_organizationMappings[businessId]); }
private async Task <string> GetOrganizationQueryParameter(Uri requestBaseUri) { var currentBusinessId = m_organization.BusinessId(); if (string.IsNullOrEmpty(currentBusinessId)) { return(""); } var parameterSeparator = string.IsNullOrEmpty(requestBaseUri.Query) ? "?" : "&"; return(parameterSeparator + "as_organization=" + await m_organizationToken.Get(currentBusinessId)); }