SubscribeToPullNotificationsOnAllFolders method
Subscribes to pull notifications on all folders in the authenticated user's mailbox. Calling this method results in a call to EWS.
The timeout, in minutes, after which the subscription expires. Timeout must be between 1 and 1440.
An optional watermark representing a previously opened subscription.
The event types to subscribe to.
Implementation
Future<PullSubscription> SubscribeToPullNotificationsOnAllFolders(
int timeout,
String? watermark,
List<EventType> eventTypes,
) async {
EwsUtilities.ValidateMethodVersion(
this,
ExchangeVersion.Exchange2010,
"SubscribeToPullNotificationsOnAllFolders",
);
return (await BuildSubscribeToPullNotificationsRequest(
null,
timeout,
watermark,
eventTypes,
).Execute())[0].Subscription!;
}