I suggest you should go with the following approach to solve your problem:
- You can maintain a
List
orDictionary
(it's up to you) to store entries ofSubscriptionId
andMailBox
at the time of subscription, once you received notification, extractSubscriptionId
and map to your storedList
/Dictonary
to get mailbox.
This solution is convenient if you don't need any extra details from Exchange, as is makes fewer calls to Exchange.
- You can get
MailBox
details from passingExtendedPropertyDefination
details and make call using extractedItemId
from notification.
I believe you get both of the approaches.