I am trying to copy the example for push notifications, and using the code here:
// Subscribe to push notifications on the Inbox folder, and only listen
// to "new mail" events.
PushSubscription pushSubscription = service.SubscribeToPushNotifications(
new FolderId[] { WellKnownFolderName.Inbox },
new Uri("https://...") /* The endpoint of the listener. /,
5 / Get a status event every 5 minutes if no new events are available. /,
null / watermark: null to start a new subscription. */,
EventType.NewMail);
I get however two syntax errors:
(1)
new FolderId[] { WellKnownFolderName.Inbox }, // TYPE MISMATCH - WellKnownFolderId can not be converted FolderId
(2)
EventType.NewMail); // NEWMAIL CANNOT BE RESOLVED OR IS NOT A FIELD
Hello,
I am trying to copy the example for push notifications, and using the code here:
// Subscribe to push notifications on the Inbox folder, and only listen // to "new mail" events. PushSubscription pushSubscription = service.SubscribeToPushNotifications( new FolderId[] { WellKnownFolderName.Inbox }, new Uri("https://...") /* The endpoint of the listener. /, 5 / Get a status event every 5 minutes if no new events are available. /, null / watermark: null to start a new subscription. */, EventType.NewMail);
I get however two syntax errors: (1) new FolderId[] { WellKnownFolderName.Inbox }, // TYPE MISMATCH - WellKnownFolderId can not be converted FolderId (2) EventType.NewMail); // NEWMAIL CANNOT BE RESOLVED OR IS NOT A FIELD
Bugs or am I missing something?