Beispiel #1
0
 internal override void UpdateIterationSuccessCount(ErrorRecord errorRecord)
 {
     if (errorRecord == null || ProvisioningMonitoringConfig.IsExceptionWhiteListedForCmdlet(errorRecord, this.cmdletName))
     {
         TenantMonitor.LogActivity(this.counterForIterationSuccesses, this.instanceName);
     }
 }
Beispiel #2
0
 internal PerTenantCmdletHealthCounters(string name, string orgName, string hostName, CounterType attempts, CounterType successes, CounterType iterationAttempts, CounterType iterationSuccesses)
 {
     this.cmdletName                   = name;
     this.instanceName                 = ProvisioningMonitoringConfig.GetInstanceName(hostName, orgName);
     this.counterForAttempts           = attempts;
     this.counterForSuccesses          = successes;
     this.counterForIterationAttempts  = iterationAttempts;
     this.counterForIterationSuccesses = iterationSuccesses;
 }
        // Token: 0x0600122D RID: 4653 RVA: 0x000391EC File Offset: 0x000373EC
        internal static bool IsExceptionWhiteListedForCmdlet(ErrorRecord errorRecord, string cmdletName)
        {
            List <CmdletErrorContext> errorContexts;

            return(errorRecord.CategoryInfo.Category == (ErrorCategory)1000 || errorRecord.CategoryInfo.Category == (ErrorCategory)1003 || errorRecord.CategoryInfo.Category == (ErrorCategory)1004 || errorRecord.CategoryInfo.Category == (ErrorCategory)1005 || errorRecord.CategoryInfo.Category == (ErrorCategory)1006 || errorRecord.CategoryInfo.Category == (ErrorCategory)1007 || errorRecord.CategoryInfo.Category == (ErrorCategory)1008 || ProvisioningMonitoringConfig.MatchesErrorContext(ProvisioningMonitoringConfig.commonErrorWhiteList, errorRecord) || (ProvisioningMonitoringConfig.monitoringConfigList.TryGetValue(cmdletName, out errorContexts) && ProvisioningMonitoringConfig.MatchesErrorContext(errorContexts, errorRecord)));
        }