Beispiel #1
0
        private Guid GetTenantId()
        {
            string strTenantId = m_accessToken.GetTenantId();

            if (!Guid.TryParse(strTenantId, out Guid tenantId))
            {
                string message = string.Format("TenantId '{0}' is not a valid Guid", strTenantId);
                throw new Exception(message);
            }
            return(tenantId);
        }