Ejemplo n.º 1
0
        private static bool AppendEsoUserIfAny(HttpContext context, string url, ref StringBuilder sb, bool isFullPath, string vdir)
        {
            bool   result       = false;
            string explicitUser = context.GetExplicitUser();

            if (!string.IsNullOrEmpty(explicitUser))
            {
                EcpUrl.EnsureStringBuilderInitialized(ref sb, isFullPath, vdir);
                sb.Append(explicitUser);
                sb.Append('/');
                result = true;
            }
            return(result);
        }
Ejemplo n.º 2
0
        private static bool AppendDelegatedTenantIfAny(HttpContext context, string url, ref StringBuilder sb, bool isFullPath, string vdir)
        {
            bool   result       = false;
            string targetTenant = context.GetTargetTenant();

            if (!string.IsNullOrEmpty(targetTenant) && !context.HasOrganizationContext())
            {
                EcpUrl.EnsureStringBuilderInitialized(ref sb, isFullPath, vdir);
                sb.Append('@');
                sb.Append(targetTenant);
                sb.Append('/');
                result = true;
            }
            return(result);
        }