Esempio n. 1
0
        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]);
        }
Esempio n. 2
0
        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));
        }