Ejemplo n.º 1
0
        private static void context_BeginRequest(object sender, EventArgs e)
        {
            //从环境中(url)获取TenantCode
            TenantContext.Current.TenantCode = PassportManager.GetTenantCodeFromContext();

            HttpContext.Current.Items["IsDeluxeWorksAuthenticate"] = true;

            if (HttpContext.Current.Request.QueryString[AccessTicket.AccquireAccessTicketParamName].IsNotEmpty())
            {
                ProcessAccquireAccessTicket();
            }
        }
Ejemplo n.º 2
0
        private bool AreDifferentTenantCode()
        {
            bool result = false;

            string envTenantCode = PassportManager.GetTenantCodeFromContext();

            if (TenantContext.Current.Enabled && envTenantCode.IsNotEmpty())
            {
                result = string.Compare(envTenantCode, this.TenantCode, true) != 0;
            }

            return(result);
        }