OfficeDev / ews-managed-api

Other
584 stars 316 forks source link

SSL pinning validation called multiple times #225

Open NikhilJere opened 5 years ago

NikhilJere commented 5 years ago

I am trying to do SSL pinning validation using the exchangeservice object. I modified the EWS managed api code to accommodate these changes. I add this method ValidateServerCertificate() as callback and when i do a subscribe(irrespective of subscribing model used) i am able to see that SSL validation callback method being called but its called 3 times.

Can i know the reason as to why callback is called multiple times? And also is there is way to make sure you do validation only once.

Thanks in advance