private SyncResponse Sync(SyncRequest syncRequest) { return(EasConnectionWrapper.WrapException <SyncResponse>(() => this.wrappedObject.Sync(syncRequest), (ConnectionsTransientException e) => new EasSyncFailedTransientException(e.Message, e), (ConnectionsPermanentException e) => new EasSyncFailedPermanentException(e.Message, e))); }
internal SyncResponse Sync(string folderId, EasSyncOptions options, bool recentOnly) { SyncRequest syncRequest = EasRequestGenerator.CreateSyncRequestForAllMessages(options.SyncKey, folderId, options.MaxNumberOfMessage, recentOnly); return(this.Sync(syncRequest)); }
internal void UpdateCalendarEvent(string calendarEventId, string syncKey, string folderId, Event theEvent, IList <Event> exceptionalEvents, IList <string> deletedOccurrences, UserSmtpAddress userSmtpAddress) { SyncRequest syncRequest = EasRequestGenerator.CreateSyncRequestForUpdateCalendarEvent(syncKey, calendarEventId, folderId, theEvent, exceptionalEvents, deletedOccurrences, userSmtpAddress); this.SyncUpdate(calendarEventId, syncRequest); }
public SyncRequestIdParameter(SyncRequest request) : base(request) { base.MailboxId = request.Mailbox; }