Ejemplo n.º 1
0
        // Token: 0x06000182 RID: 386 RVA: 0x0000AB9C File Offset: 0x00008D9C
        public static void DecrementUserPerfCounters(string userName, bool isProxy, bool isLightExperience)
        {
            if (isProxy)
            {
                PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentProxiedUsers, -1L);
                return;
            }
            PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUsers, -1L);
            UniqueUserData userData = PerformanceCounterManager.GetUserData(userName);

            if (isLightExperience)
            {
                PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUsersLight, -1L);
                if (userData.CurrentLightSessionCount == 0)
                {
                    PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUniqueUsersLight, -1L);
                }
            }
            else
            {
                PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUsersPremium, -1L);
                if (userData.CurrentPremiumSessionCount == 0)
                {
                    PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUniqueUsersPremium, -1L);
                }
            }
            if (userData.CurrentSessionCount == 0)
            {
                PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUniqueUsers, -1L);
            }
        }
Ejemplo n.º 2
0
 // Token: 0x06000170 RID: 368 RVA: 0x0000A53A File Offset: 0x0000873A
 public static void UpdateResponseTimePerformanceCounter(long newValue, bool isProxy)
 {
     PerformanceCounterManager.UpdateMovingAveragePerformanceCounter(OwaSingleCounters.AverageResponseTime, newValue, ref PerformanceCounterManager.responseTimeAverage, PerformanceCounterManager.responseTimeAverageLock);
     if (isProxy)
     {
         PerformanceCounterManager.UpdateMovingAveragePerformanceCounter(OwaSingleCounters.ProxiedResponseTimeAverage, newValue, ref PerformanceCounterManager.proxiedResponseTimeAverage, PerformanceCounterManager.proxiedResponseTimeAverageLock);
     }
 }
Ejemplo n.º 3
0
        // Token: 0x0600017D RID: 381 RVA: 0x0000A910 File Offset: 0x00008B10
        public static void AddStoragePermanantExResult(bool result)
        {
            long num = PerformanceCounterManager.AddResultToQueue(result, PerformanceCounterManager.storagePermanentExResultsQueue, PerformanceCounterManager.storagePermanentExResultsQueueSize);

            if (num != -1L)
            {
                OwaSingleCounters.StoragePermanentExceptionPercent.RawValue = num;
            }
        }
Ejemplo n.º 4
0
        // Token: 0x0600017B RID: 379 RVA: 0x0000A8B0 File Offset: 0x00008AB0
        public static void AddConnectionFailedTransientExResult(bool result)
        {
            long num = PerformanceCounterManager.AddResultToQueue(result, PerformanceCounterManager.connectionFailedTransientExResultsQueue, PerformanceCounterManager.connectionFailedTransientExResultsQueueSize);

            if (num != -1L)
            {
                OwaSingleCounters.ConnectionFailedTransientExceptionPercent.RawValue = num;
            }
        }
Ejemplo n.º 5
0
        // Token: 0x0600017A RID: 378 RVA: 0x0000A880 File Offset: 0x00008A80
        public static void AddMailboxOfflineExResult(bool result)
        {
            long num = PerformanceCounterManager.AddResultToQueue(result, PerformanceCounterManager.mailboxOfflineExResultsQueue, PerformanceCounterManager.mailboxOfflineExResultsQueueSize);

            if (num != -1L)
            {
                OwaSingleCounters.MailboxOfflineExceptionFailuresPercent.RawValue = num;
            }
        }
Ejemplo n.º 6
0
        // Token: 0x06000178 RID: 376 RVA: 0x0000A7D0 File Offset: 0x000089D0
        public static void AddSentInstantMessageResult(bool result)
        {
            long num = PerformanceCounterManager.AddResultToQueue(result, PerformanceCounterManager.sentInstantMessageResultsQueue, PerformanceCounterManager.sentInstantMessageResultsQueueSize);

            if (num != -1L)
            {
                OwaSingleCounters.IMSentMessageDeliveryFailuresPercent.RawValue = num;
            }
        }
Ejemplo n.º 7
0
        // Token: 0x06000177 RID: 375 RVA: 0x0000A7A0 File Offset: 0x000089A0
        public static void AddInstantMessagingLogonResult(bool result)
        {
            long num = PerformanceCounterManager.AddResultToQueue(result, PerformanceCounterManager.instantMessagingLogonResultsQueue, PerformanceCounterManager.instantMessagingLogonResultsQueueSize);

            if (num != -1L)
            {
                OwaSingleCounters.IMLogonFailuresPercent.RawValue = num;
            }
        }
Ejemplo n.º 8
0
        // Token: 0x06000176 RID: 374 RVA: 0x0000A774 File Offset: 0x00008974
        public static void AddStoreLogonResult(bool result)
        {
            long num = PerformanceCounterManager.AddResultToQueue(result, PerformanceCounterManager.storeLogonResultsQueue, 1);

            if (num != -1L)
            {
                OwaSingleCounters.StoreLogonFailurePercent.RawValue = num;
            }
        }
Ejemplo n.º 9
0
        // Token: 0x06000183 RID: 387 RVA: 0x0000AC28 File Offset: 0x00008E28
        public static void UpdatePerfCounteronUserContextCreation(string userName, bool isProxy, bool isLightExperience, bool arePerfCountersEnabled)
        {
            if (arePerfCountersEnabled)
            {
                PerformanceCounterManager.IncrementUserPerfCounters(userName, isProxy, isLightExperience);
            }
            UniqueUserData userData = PerformanceCounterManager.GetUserData(userName);

            userData.IncreaseSessionCounter(isProxy, isLightExperience);
        }
Ejemplo n.º 10
0
        // Token: 0x06000184 RID: 388 RVA: 0x0000AC50 File Offset: 0x00008E50
        public static void UpdatePerfCounteronUserContextDeletion(string userName, bool isProxy, bool isLightExperience, bool arePerfCountersEnabled)
        {
            if (string.IsNullOrEmpty(userName))
            {
                ExTraceGlobals.CoreTracer.TraceError(0L, "UpdatePerfCounteronUserContextDeletion got null or empty value for parameter 'userName'.");
                return;
            }
            UniqueUserData uniqueUserData = PerformanceCounterManager.GetUniqueUserData(userName);

            uniqueUserData.DecreaseSessionCounter(isProxy, isLightExperience);
            if (arePerfCountersEnabled)
            {
                PerformanceCounterManager.DecrementUserPerfCounters(userName, isProxy, isLightExperience);
            }
        }
Ejemplo n.º 11
0
        // Token: 0x06000181 RID: 385 RVA: 0x0000AA38 File Offset: 0x00008C38
        public static void IncrementUserPerfCounters(string userName, bool isProxy, bool isLightExperience)
        {
            if (isProxy)
            {
                PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentProxiedUsers, 1L);
                return;
            }
            bool           flag;
            UniqueUserData userData = PerformanceCounterManager.GetUserData(userName, out flag);

            if (flag)
            {
                OwaSingleCounters.TotalUniqueUsers.Increment();
            }
            if (userData.CurrentSessionCount == 0)
            {
                PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUniqueUsers, 1L);
            }
            if (isLightExperience)
            {
                if (userData.CurrentLightSessionCount == 0)
                {
                    PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUniqueUsersLight, 1L);
                }
                if (userData.IsFirstLightSession)
                {
                    OwaSingleCounters.TotalUniqueUsersLight.Increment();
                }
            }
            else
            {
                if (userData.CurrentPremiumSessionCount == 0)
                {
                    PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUniqueUsersPremium, 1L);
                }
                if (userData.IsFirstPremiumSession)
                {
                    OwaSingleCounters.TotalUniqueUsersPremium.Increment();
                }
            }
            PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUsers, 1L);
            OwaSingleCounters.TotalUsers.Increment();
            if (OwaSingleCounters.CurrentUsers.RawValue > OwaSingleCounters.PeakUserCount.RawValue)
            {
                OwaSingleCounters.PeakUserCount.RawValue = OwaSingleCounters.CurrentUsers.RawValue;
            }
            if (isLightExperience)
            {
                PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUsersLight, 1L);
                OwaSingleCounters.TotalUsersLight.Increment();
                if (OwaSingleCounters.CurrentUsersLight.RawValue > OwaSingleCounters.PeakUserCountLight.RawValue)
                {
                    OwaSingleCounters.PeakUserCountLight.RawValue = OwaSingleCounters.CurrentUsersLight.RawValue;
                    return;
                }
            }
            else
            {
                PerformanceCounterManager.IncrementCurrentUsersCounterBy(OwaSingleCounters.CurrentUsersPremium, 1L);
                OwaSingleCounters.TotalUsersPremium.Increment();
                if (OwaSingleCounters.CurrentUsersPremium.RawValue > OwaSingleCounters.PeakUserCountPremium.RawValue)
                {
                    OwaSingleCounters.PeakUserCountPremium.RawValue = OwaSingleCounters.CurrentUsersPremium.RawValue;
                }
            }
        }
Ejemplo n.º 12
0
        // Token: 0x0600017F RID: 383 RVA: 0x0000A9B0 File Offset: 0x00008BB0
        public static UniqueUserData GetUserData(string userName)
        {
            bool flag;

            return(PerformanceCounterManager.GetUserData(userName, out flag));
        }
Ejemplo n.º 13
0
 // Token: 0x06000171 RID: 369 RVA: 0x0000A569 File Offset: 0x00008769
 public static void UpdateImSignOnTimePerformanceCounter(long newValue)
 {
     PerformanceCounterManager.UpdateMovingAveragePerformanceCounter(OwaSingleCounters.IMAverageSignOnTime, newValue, ref PerformanceCounterManager.imSignOnTimeAverage, PerformanceCounterManager.imSignOnTimeAverageLock);
 }
Ejemplo n.º 14
0
 // Token: 0x0600016F RID: 367 RVA: 0x0000A523 File Offset: 0x00008723
 public static void UpdateSpellcheckTimePerformanceCounter(long newValue)
 {
     PerformanceCounterManager.UpdateMovingAveragePerformanceCounter(OwaSingleCounters.AverageSpellcheckTime, newValue, ref PerformanceCounterManager.spellcheckTimeAverage, PerformanceCounterManager.spellcheckTimeAverageLock);
 }