SubscribeToStreamingNotificationsOnAllFolders method
Subscribes to streaming notifications on all folders in the authenticated user's mailbox. Calling this method results in a call to EWS.
The event types to subscribe to.
Implementation
Future<StreamingSubscription> SubscribeToStreamingNotificationsOnAllFolders(
List<EventType> eventTypes,
) async {
EwsUtilities.ValidateMethodVersion(
this,
ExchangeVersion.Exchange2010_SP1,
"SubscribeToStreamingNotificationsOnAllFolders",
);
return (await BuildSubscribeToStreamingNotificationsRequest(
null,
eventTypes,
).Execute())[0].Subscription!;
}