コード例 #1
0
        private static MessageStatus GetMessageStatus(IMessageConverter converter, ADTransientException unavailableException)
        {
            StorageExceptionHandler.LogException(converter, unavailableException);
            SmtpResponse exceptionSmtpResponse = StorageExceptionHandler.GetExceptionSmtpResponse(converter, unavailableException, false);

            return(new MessageStatus(MessageAction.Retry, exceptionSmtpResponse, unavailableException));
        }
コード例 #2
0
        internal static string FindDomainControllerByInvocationId(Guid dcInvocationId, PartitionId partitionId)
        {
            ExTraceGlobals.BackSyncTracer.TraceDebug <Guid>((long)SyncConfiguration.TraceId, "FindDomainControllerByInvocationIddcInvocationId {0}", dcInvocationId);
            ADTransientException exceptionOnDcNotFound = new ADTransientException(DirectoryStrings.ErrorDCNotFound(string.Format("InvocationId: {0}", dcInvocationId)));
            string text = SyncConfiguration.FindDomainControllerByInvocationId(dcInvocationId, exceptionOnDcNotFound, partitionId);

            ExTraceGlobals.BackSyncTracer.TraceDebug <string>((long)SyncConfiguration.TraceId, "FindDomainControllerByInvocationId dcFqdn {0}", text);
            return(text);
        }
コード例 #3
0
 private static MessageStatus GetMessageStatus(IMessageConverter converter, DataSourceOperationException dataSourceOperationException)
 {
     if (dataSourceOperationException is ADInvalidCredentialException)
     {
         ADTransientException unavailableException = new ADTransientException(dataSourceOperationException.LocalizedString, dataSourceOperationException);
         return(StorageExceptionHandler.GetMessageStatus(converter, unavailableException));
     }
     StorageExceptionHandler.LogException(converter, dataSourceOperationException);
     return(new MessageStatus(MessageAction.NDR, StorageExceptionHandler.GetExceptionSmtpResponse(converter, dataSourceOperationException, true), dataSourceOperationException));
 }