Esempio n. 1
0
        // Token: 0x0600003A RID: 58 RVA: 0x00003ACC File Offset: 0x00001CCC
        private void LogMessageTrackingInfo(string remoteHostName, IPAddress localIP, string localServerName, MapiEvent mapiEvent, MailSubmissionResult result, string latencyString)
        {
            SubmissionRecord.Drop(this.successHistory, this.failureHistory, mapiEvent, result);
            string text = this.FormatMapiEventInfo(mapiEvent);
            MsgTrackMapiSubmitInfo msgTrackInfo;

            if (result.ErrorCode == 0U)
            {
                MailboxTransportSubmissionService.StoreDriverTracer.ServiceTracer.TracePass <string>(MailboxTransportSubmissionService.StoreDriverTracer.MessageProbeActivityId, (long)this.GetHashCode(), "Submission succeeded for {0}", text);
                msgTrackInfo = new MsgTrackMapiSubmitInfo(text, null, remoteHostName, localIP, localServerName, result.Sender, result.From, result.MessageId, MailboxTransportSubmissionAssistant.ItemEntryId(mapiEvent), Components.Configuration.LocalServer.TransportServer.MessageTrackingLogSubjectLoggingEnabled ? result.Subject : "[Undisclosed]", latencyString, result.DiagnosticInfo, null != mapiEvent, result.ExternalOrganizationId, result.OrganizationId, result.RecipientAddresses, MailDirectionality.Originating, result.NetworkMessageId, result.OriginalClientIPAddress);
            }
            else
            {
                string text2 = HResult.GetStringForErrorCode(result.ErrorCode);
                if (!string.IsNullOrEmpty(result.DiagnosticInfo))
                {
                    text2 = "Error: " + text2 + ", Diagnostic Information: " + result.DiagnosticInfo;
                }
                MailboxTransportSubmissionService.StoreDriverTracer.ServiceTracer.TracePass <string, string>(MailboxTransportSubmissionService.StoreDriverTracer.MessageProbeActivityId, (long)this.GetHashCode(), "Submission failed for {0}, error: {1}", text, text2);
                if (!HResult.IsHandled(result.ErrorCode) && !MailboxTransportSubmissionAssistant.ShouldLogTemporaryFailures)
                {
                    return;
                }
                msgTrackInfo = new MsgTrackMapiSubmitInfo(text, null, remoteHostName, localIP, localServerName, result.Sender, result.MessageId, MailboxTransportSubmissionAssistant.ItemEntryId(mapiEvent), latencyString, text2, HResult.IsHandled(result.ErrorCode), null != mapiEvent, result.ExternalOrganizationId, result.OrganizationId, result.RecipientAddresses, MailDirectionality.Originating, result.NetworkMessageId);
            }
            if (11U == result.ErrorCode)
            {
                MessageTrackingLog.TrackThrottle(MessageTrackingSource.STOREDRIVER, msgTrackInfo, result.Sender, result.MessageId, MailDirectionality.Originating);
                return;
            }
            MessageTrackingLog.TrackMapiSubmit(msgTrackInfo);
        }
Esempio n. 2
0
 // Token: 0x0600004F RID: 79 RVA: 0x0000422C File Offset: 0x0000242C
 public static void Drop(Breadcrumbs <SubmissionRecord.Success> successHistory, Breadcrumbs <SubmissionRecord.Failure> failureHistory, object submissionData, MailSubmissionResult result)
 {
     if (result.ErrorCode == 0U)
     {
         successHistory.Drop(new SubmissionRecord.Success(submissionData, result.Sender, result.MessageId, result.Subject));
         return;
     }
     failureHistory.Drop(new SubmissionRecord.Failure(submissionData, HResult.GetStringForErrorCode(result.ErrorCode), result.DiagnosticInfo));
 }