13,724 questions
see docs:
https://learn.microsoft.com/en-us/graph/webhooks
see create subscription:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello Everyone,
I am implementing subscription functionality using microsoft graph in C#.
This is my old code. Please suggest me how to achieve the same thing using microsoft graph. I need the onnotificationEvent and OnDisconnect event as well.
The below code written for the mails which are there in EWS servers.
StreamingSubscription subscription = service.SubscribeToStreamingNotifications(
new FolderId[] { SharedMailbox },
EventType.NewMail
);
StreamingSubscriptionConnection connection = new StreamingSubscriptionConnection(service, 30);
connection.AddSubscription(subscription);
connection.OnNotificationEvent += OnNotificationEvent;
connection.OnDisconnect += OnDisconnect;
connection.Open();
Console.WriteLine("(" + System.DateTime.Now + ") Syncing Mailbox...");
Console.Read();