Esempio n. 1
0
        protected void ReturnErrorPageToken(DateTime now, IFullSyncPageToken pageToken)
        {
            ExTraceGlobals.BackSyncTracer.TraceDebug((long)SyncConfiguration.TraceId, "FullSyncConfiguration ReturnErrorPageToken");
            DateTime dateTime = base.IsSubsequentFailedAttempt() ? this.GetLastReadFailureStartTime() : now;

            ExTraceGlobals.BackSyncTracer.TraceDebug <DateTime>((long)SyncConfiguration.TraceId, "FullSyncConfiguration lastReadFailureStartTime {0}", dateTime);
            this.originalToken.Timestamp = now;
            this.originalToken.LastReadFailureStartTime = dateTime;
            byte[] array = pageToken.ToByteArray();
            base.WriteResult(array, SyncObject.CreateGetDirectoryObjectsResponse(new List <SyncObject>(), true, array, this.GetReportedErrors(), null));
        }
Esempio n. 2
0
 public FullSyncConfiguration(IFullSyncPageToken pageToken, Guid invocationId, OutputResultDelegate writeResult, ISyncEventLogger eventLogger, IExcludedObjectReporter excludedObjectReporter, IFullSyncPageToken originalToken) : base(invocationId, writeResult, eventLogger, excludedObjectReporter)
 {
     ExTraceGlobals.BackSyncTracer.TraceDebug((long)SyncConfiguration.TraceId, "New FullSyncConfiguration");
     this.FullSyncPageToken = pageToken;
     this.originalToken     = originalToken;
 }