// Token: 0x06000010 RID: 16 RVA: 0x000028F0 File Offset: 0x00000AF0
		static LiveIdRedirectionModule()
		{
			RedirectionHelper.InitTenantsOnCurrentSiteCache();
			LiveIdRedirectionModule.perfCounter = RemotePowershellPerformanceCounters.GetInstance("RemotePS-LiveID");
			LiveIdRedirectionModule.perfCounter.PID.RawValue = (long)Process.GetCurrentProcess().Id;
			Globals.InitializeMultiPerfCounterInstance("RemotePS-LiveID");
		}
Пример #2
0
 private static void InitializeExchangeAuthZPluginPerfCounter(string vdirName, int port)
 {
     if (ExchangeAuthorizationPlugin.perfCounter == null)
     {
         if (Constants.IsPowerShellWebService)
         {
             ExchangeAuthorizationPlugin.perfCounter = RemotePowershellPerformanceCounters.GetInstance("Psws");
         }
         else
         {
             ExchangeAuthorizationPlugin.perfCounter = RPSPerfCounterHelper.GetPerfCounterForAuthZ(vdirName, port);
             Globals.InitializeMultiPerfCounterInstance(ExchangeAuthorizationPlugin.perfCounter.Name);
         }
         ExchangeAuthorizationPlugin.perfCounter.CurrentSessions.RawValue    = 0L;
         ExchangeAuthorizationPlugin.perfCounter.CurrentUniqueUsers.RawValue = 0L;
         ExchangeAuthorizationPlugin.perfCounter.ConnectionLeak.RawValue     = 0L;
     }
 }