Пример #1
0
 public WinRMDataSender(HttpContext context, LatencyTracker latencyTracker)
 {
     WinRMDataSender < > 4__this = this;
     CoreLogger.ExecuteAndLog("WinRMDataSender.Ctor", true, null, null, delegate()
     {
         if (!WinRMDataExchangeHelper.IsExchangeDataUseAuthenticationType() && !WinRMDataExchangeHelper.IsExchangeDataUseNamedPipe())
         {
             throw new InvalidFlightingException();
         }
         if (context.User == null || context.User.Identity == null)
         {
             throw new ArgumentException("context.User and context.User.Identity should not be null.");
         }
         < > 4__this.httpContext    = context;
Пример #2
0
 // Token: 0x06000080 RID: 128 RVA: 0x00004400 File Offset: 0x00002600
 public WinRMDataReceiver(string connectionUrl, string userName, string authenticationType, LatencyTracker latencyTracker)
 {
     WinRMDataReceiver < > 4__this = this;
     if (!WinRMDataExchangeHelper.IsExchangeDataUseAuthenticationType() && !WinRMDataExchangeHelper.IsExchangeDataUseNamedPipe())
     {
         throw new InvalidFlightingException();
     }
     CoreLogger.ExecuteAndLog("WinRMDataReceiver.Ctor", true, latencyTracker, delegate(Exception ex)
     {
         AuthZLogger.SafeAppendGenericError("WinRMDataReceiver.Ctor", ex.ToString(), false);
     }, delegate()
     {
         < > 4__this.latencyTracker = latencyTracker;
         if (WinRMDataExchangeHelper.IsExchangeDataUseAuthenticationType())
         {
             WinRMDataExchangeHelper.DehydrateAuthenticationType(authenticationType, out < > 4__this.authenticationType, out < > 4__this.serializedData);
         }
         else
         {