Beispiel #1
0
        public override void ReportExcludedObject(PropertyBag propertyBag, DirectoryObjectErrorCode errorCode, ProcessingStage processingStage)
        {
            SyncObjectId syncObjectId = FullSyncObjectErrorReporter.GetSyncObjectId(propertyBag);

            if (syncObjectId != null)
            {
                this.ReportExcludedObject(syncObjectId, errorCode, processingStage);
                return;
            }
            base.ReportExcludedObject(propertyBag, errorCode, processingStage);
            DirectoryObjectError directoryObjectError = new DirectoryObjectError();

            directoryObjectError.ErrorCode = errorCode;
            directoryObjectError.ObjectId  = (string)propertyBag[SyncObjectSchema.ObjectId];
            if (propertyBag.Contains(ADObjectSchema.ObjectClass))
            {
                directoryObjectError.ObjectClass = SyncRecipient.GetRecipientType(propertyBag);
            }
            if (propertyBag.Contains(SyncObjectSchema.ContextId))
            {
                directoryObjectError.ContextId = (string)propertyBag[SyncObjectSchema.ContextId];
            }
            this.errors.Add(directoryObjectError);
            if (this.performanceCounterSession != null)
            {
                this.performanceCounterSession.IncrementUserError();
            }
        }
Beispiel #2
0
        public override void ReportExcludedObject(PropertyBag propertyBag, DirectoryObjectErrorCode errorCode, ProcessingStage processingStage)
        {
            base.ReportExcludedObject(propertyBag, errorCode, processingStage);
            DirectoryObjectClass directoryObjectClass = DirectoryObjectClass.Account;

            if (propertyBag.Contains(ADObjectSchema.ObjectClass))
            {
                directoryObjectClass = SyncRecipient.GetRecipientType(propertyBag);
            }
            ADObjectId adObjectId = (ADObjectId)propertyBag[ADObjectSchema.Id];
            string     objectId   = (string)propertyBag[SyncObjectSchema.ObjectId];

            this.verboseLoggingDelegate(Strings.BackSyncObjectExcludedExtended(directoryObjectClass, objectId, adObjectId, errorCode, processingStage));
        }
Beispiel #3
0
        public override void ReportExcludedObject(SyncObjectId objectId, DirectoryObjectErrorCode errorCode, ProcessingStage processingStage)
        {
            base.ReportExcludedObject(objectId, errorCode, processingStage);
            DirectoryObjectError directoryObjectError = new DirectoryObjectError();

            directoryObjectError.ErrorCode            = errorCode;
            directoryObjectError.ObjectId             = objectId.ObjectId;
            directoryObjectError.ContextId            = objectId.ContextId;
            directoryObjectError.ObjectClass          = objectId.ObjectClass;
            directoryObjectError.ObjectClassSpecified = true;
            this.errors.Add(directoryObjectError);
            if (this.performanceCounterSession != null)
            {
                this.performanceCounterSession.IncrementUserError();
            }
        }
Beispiel #4
0
 public override void ReportExcludedObject(SyncObjectId objectId, DirectoryObjectErrorCode errorCode, ProcessingStage processingStage)
 {
     base.ReportExcludedObject(objectId, errorCode, processingStage);
     this.verboseLoggingDelegate(Strings.BackSyncObjectExcluded(objectId.ToString(), errorCode, processingStage));
 }
Beispiel #5
0
 private static void LogExcludedObject(string objectId, DirectoryObjectErrorCode errorCode, ProcessingStage processingStage)
 {
     ExTraceGlobals.BackSyncTracer.TraceDebug <string, DirectoryObjectErrorCode, ProcessingStage>((long)Thread.CurrentThread.ManagedThreadId, "Object '{0}' excluded from backsyc stream. Reason: {1}. Stage: {2}", objectId, errorCode, processingStage);
 }
Beispiel #6
0
 public virtual void ReportExcludedObject(SyncObjectId objectId, DirectoryObjectErrorCode errorCode, ProcessingStage processingStage)
 {
     ExcludedObjectReporter.LogExcludedObject(objectId.ToString(), errorCode, processingStage);
 }
Beispiel #7
0
 public virtual void ReportExcludedObject(PropertyBag propertyBag, DirectoryObjectErrorCode errorCode, ProcessingStage processingStage)
 {
     ExcludedObjectReporter.LogExcludedObject(ExcludedObjectReporter.GetId(propertyBag), errorCode, processingStage);
 }