Пример #1
0
 public override PSPrimitiveDictionary GetApplicationPrivateData(PSSenderInfo senderInfo)
 {
     if (!Constants.IsPowerShellWebService)
     {
         ExchangeAuthorizationPlugin.InitializeAuthZPluginForRemotePS(senderInfo.ConnectionString);
     }
     ExchangeAuthorizationPlugin.EnsureSettingOverrideSyncIsStarted();
     return(AuthZLogHelper.StartAndEndLoging <PSPrimitiveDictionary>("GetApplicationPrivateData", () => AuthZLogHelper.ExecuteWSManPluginAPI <PSPrimitiveDictionary>("GetApplicationPrivateData", true, true, null, delegate()
     {
         InitialSessionState initialSessionStateCore = this.GetInitialSessionStateCore(senderInfo);
         if (!Constants.IsPowerShellWebService)
         {
             this.CheckSessionOverBudget();
         }
         this.currentUserISS.Target = initialSessionStateCore;
         int value = InitialSessionStateBuilder.CalculateHashForImplicitRemoting(initialSessionStateCore);
         PSPrimitiveDictionary psprimitiveDictionary = new PSPrimitiveDictionary();
         psprimitiveDictionary.Add("ImplicitRemoting", new PSPrimitiveDictionary
         {
             {
                 "Hash",
                 value
             }
         });
         if (!Constants.IsPowerShellWebService)
         {
             psprimitiveDictionary.Add("SupportedVersions", this.ExpandVersions(senderInfo.ConnectionString));
         }
         this.LogCommonValues();
         return psprimitiveDictionary;
     })));
 }
Пример #2
0
 // Token: 0x060012DA RID: 4826 RVA: 0x0003D3BC File Offset: 0x0003B5BC
 internal static void StartAndEndLoging(string funcName, Action action)
 {
     AuthZLogHelper.StartAndEndLoging <bool>(funcName, delegate()
     {
         action();
         return(true);
     });
 }
Пример #3
0
 protected override void Dispose(bool isDisposing)
 {
     AuthZLogHelper.StartAndEndLoging("Dispose", delegate()
     {
         AuthZLogHelper.ExecuteWSManPluginAPI("Dispose", false, false, delegate()
         {
             if (isDisposing)
             {
                 this.OnDispose();
             }
             this.< > n__FabricatedMethode(isDisposing);
         });
     });
 }
Пример #4
0
 public override InitialSessionState GetInitialSessionState(PSSenderInfo senderInfo)
 {
     return(AuthZLogHelper.StartAndEndLoging <InitialSessionState>("GetInitialSessionState", () => AuthZLogHelper.ExecuteWSManPluginAPI <InitialSessionState>("GetInitialSessionState", true, true, null, delegate()
     {
         if (senderInfo == null || senderInfo.UserInfo == null || senderInfo.UserInfo.Identity == null || senderInfo.UserInfo.Identity.Name == null)
         {
             throw new ArgumentException("senderInfo");
         }
         ExTraceGlobals.PublicPluginAPITracer.TraceDebug((long)this.GetHashCode(), "[EAP.GetInitialSessionState] Enter.");
         this.PreGetInitialSessionState(senderInfo);
         InitialSessionState initialSessionState = this.currentUserISS.Target as InitialSessionState;
         this.currentUserISS.Target = null;
         if (initialSessionState == null)
         {
             initialSessionState = this.GetInitialSessionStateCore(senderInfo);
         }
         this.PostGetInitialSessionState(senderInfo);
         return initialSessionState;
     })));
 }