internal override void UpdateTransientErrorCache(TestCasConnectivity.TestCasConnectivityRunInstance instance, int cFailed, int cWarning, ref int cFailedTransactions, ref int cWarningTransactions, StringBuilder failedStr, StringBuilder warningStr, ref StringBuilder failedTransactionsStr, ref StringBuilder warningTransactionsStr) { TransientErrorCache transientErrorCache = this.GetTransientErrorCache(); string text = (instance.exchangePrincipal != null) ? instance.exchangePrincipal.MailboxInfo.Location.ServerFqdn : null; if (cFailed > 0 || cWarning > 0) { if (transientErrorCache != null && !string.IsNullOrEmpty(text) && !transientErrorCache.ContainsError(text, instance.VirtualDirectoryName)) { transientErrorCache.Add(new CASServiceError(text, instance.VirtualDirectoryName)); return; } if (cFailed > 0) { cFailedTransactions += cFailed; failedTransactionsStr.Append(failedStr); } if (cWarning > 0) { cWarningTransactions += cWarning; warningTransactionsStr.Append(warningStr); return; } } else if (transientErrorCache != null && !string.IsNullOrEmpty(text) && !string.IsNullOrEmpty(instance.VirtualDirectoryName)) { transientErrorCache.Remove(text, instance.VirtualDirectoryName); } }
internal TestVirtualDirectoryConnectivity(LocalizedString applicationName, LocalizedString applicationShortName, TransientErrorCache transientErrorCache, string monitoringEventSourceInternal, string monitoringEventSourceExternal) { this.ApplicationName = applicationName; this.ApplicationShortName = applicationShortName; this.transientErrorCache = transientErrorCache; this.monitoringEventSourceInternal = monitoringEventSourceInternal; this.monitoringEventSourceExternal = monitoringEventSourceExternal; }
internal TestWebApplicationConnectivity(LocalizedString applicationName, LocalizedString applicationShortName, TransientErrorCache transientErrorCache, string monitoringEventSourceInternal, string monitoringEventSourceExternal) : base(applicationName, applicationShortName, transientErrorCache, monitoringEventSourceInternal, monitoringEventSourceExternal) { }