locked
EWS Pull Subscription checking RRS feed

  • Question

  • I am writing a program for processing emails via EWS using a Pull Subscription. 

    Currently, I've written the following code:

    if (subscription.getWaterMark() == null || subscription.getWaterMark().isEmpty()) {
                //resubscribe
            }

    This code is called before the processing of the new emails in case the server restarted or something else happened with the subscription.

    My question is whether this code is sufficient to check if a pull subscription is valid or I have to do more checks?

    Thanks!

    Tuesday, July 21, 2020 2:52 PM

All replies