Beispiel #1
0
        // Token: 0x060003B6 RID: 950 RVA: 0x00017190 File Offset: 0x00015390
        private void ExecuteGetUserSettingsCommand(IPrincipal callingPrincipal, CallContext callContext)
        {
            IOrganizationScopedIdentity organizationScopedIdentity = callingPrincipal.Identity as IOrganizationScopedIdentity;

            if (organizationScopedIdentity != null)
            {
                this.ExecuteCommandForPartnerUser(organizationScopedIdentity, callContext);
                return;
            }
            WindowsIdentity windowsIdentity = callingPrincipal.Identity as WindowsIdentity;
            ClientSecurityContextIdentity clientSecurityContextIdentity = callingPrincipal.Identity as ClientSecurityContextIdentity;

            if (windowsIdentity != null || clientSecurityContextIdentity != null)
            {
                this.ExecuteCommand(callingPrincipal.Identity, callContext);
                return;
            }
            ExternalIdentity externalIdentity = callingPrincipal.Identity as ExternalIdentity;

            if (externalIdentity != null)
            {
                this.ExecuteCommandForExternalUser(externalIdentity, callContext);
                return;
            }
            callContext.Response.ErrorCode    = ErrorCode.InvalidRequest;
            callContext.Response.ErrorMessage = Strings.InvalidRequest;
        }
Beispiel #2
0
        // Token: 0x060003B9 RID: 953 RVA: 0x00017664 File Offset: 0x00015864
        private void ExecuteCommandForExternalUser(ExternalIdentity callerExternalIdentity, CallContext callContext)
        {
            ExTraceGlobals.FrameworkTracer.TraceDebug <string>((long)this.GetHashCode(), "GetUserSettingsForExternalUser created for '{0}'.", callerExternalIdentity.Name);
            GetUserSettingsCommandBase getUserSettingsCommandBase = new GetUserSettingsForExternalUser(callerExternalIdentity, callContext);

            getUserSettingsCommandBase.Execute();
        }
 internal GetUserSettingsForExternalUser(ExternalIdentity callerExternalIdentity, CallContext callContext) : base(callContext)
 {
     this.callerExternalIdentity = callerExternalIdentity;
 }