/// <summary> /// Obtains a collection of events that occurred on the subscribed folders since the point /// in time defined by the Watermark property. When GetEvents succeeds, Watermark is updated. /// </summary> /// <returns>Returns a collection of events that occurred since the last watermark.</returns> public async Task <GetEventsResults> GetEvents(CancellationToken token = default(CancellationToken)) { GetEventsResults results = await this.Service.GetEvents(this.Id, this.Watermark, token); this.Watermark = results.NewWatermark; this.moreEventsAvailable = results.MoreEventsAvailable; return(results); }
/// <summary> /// Ends an asynchronous request to obtain a collection of events that occurred on the subscribed /// folders since the point in time defined by the Watermark property. When EndGetEvents succeeds, Watermark is updated. /// </summary> /// <param name="asyncResult">An IAsyncResult that references the asynchronous request.</param> /// <returns>Returns a collection of events that occurred since the last watermark.</returns> public GetEventsResults EndGetEvents(IAsyncResult asyncResult) { GetEventsResults results = this.Service.EndGetEvents(asyncResult); this.Watermark = results.NewWatermark; this.moreEventsAvailable = results.MoreEventsAvailable; return(results); }
/// <summary> /// Obtains a collection of events that occurred on the subscribed folders since the point /// in time defined by the Watermark property. When GetEvents succeeds, Watermark is updated. /// </summary> /// <returns>Returns a collection of events that occurred since the last watermark.</returns> public async Task <GetEventsResults> GetEvents() { GetEventsResults results = await this.Service.GetEvents(this.Id, this.Watermark); this.Watermark = results.NewWatermark; this.moreEventsAvailable = results.MoreEventsAvailable; return(results); }
/// <summary> /// Obtains a collection of events that occurred on the subscribed folders since the point /// in time defined by the Watermark property. When GetEvents succeeds, Watermark is updated. /// </summary> /// <returns>Returns a collection of events that occurred since the last watermark.</returns> public GetEventsResults GetEvents() { GetEventsResults results = this.Service.GetEvents(this.Id, this.Watermark); this.Watermark = results.NewWatermark; this.moreEventsAvailable = results.MoreEventsAvailable; return(results); }