none
Outlook365 EWS streaming notifications | How to calcuate time taken to send and receive message? RRS feed

  • Question

  • I am trying to calculate the time taken to send email message and  receive email message in office365. i am using EWS in my program , I set streaming notification to receive call back when a new mail reaches reciptent mailbox .

    Before sending email i did DateTime.now to store the time before sending email,  once received notification i bind the Itemevent with ews service , 

    Itemevent i got has Datetimecreated, Datetimesent and Datetimereceived, but the time value in datetimesent is having around 3 minutes difference ,but actually mail sent and received within 4 secs.

    I tried converting both datetime ( the one i did in my program before sending mail and the one that i received as itemevent ) to UTC using.ToUniversalTime() call but still i m seeing 3 minutes difference .

    Why i m seeing incorrect time from the sender? what is the correct way to do this ?

    Regards,

    kishore

    Wednesday, May 17, 2017 2:39 PM