Closed TiboLR34 closed 4 months ago
My workaround was to use DeleteItemS ...
Hi, I've finally found out what caused this issue.
The cause was the changed lifetime of the underlying HttpClient. In the legacy version the HttpClient was bound to the EwsHttpWebRequest
class itself, but in .net core the HttpClient now uses a connection pool under the hood, so it made sense to decouple the HttpClient from the individual request itself.
But this introduced a bug as
pointed to the (now shared) http client instance. This resulted in each request adding the same headers over and over again.
Best regards Clemens
Thanks a lot and congrats I'll try the New code
Sincerely
Envoyé depuis un dispositif mobile
Thibaut MUREZ 26 Impasse du Grand Chêne 34980 Montferrier sur Lez
+33 6 18 02 69 35
Le jeu. 20 juin 2024, 21:01, Clemens Susenbeth @.***> a écrit :
Hi, I've finally found out what caused this issue.
The cause was the changed lifetime of the underlying HttpClient. In the legacy version the HttpClient was bound to the EwsHttpWebRequest class itself, but in .net core the HttpClient now uses a connection pool under the hood, so it made sense to decouple the HttpClient from the individual request itself.
But this introduced a bug as
pointed to the (now shared) http client instance. This resulted in each request adding the same headers over and over again.
Best regards Clemens
— Reply to this email directly, view it on GitHub https://github.com/ItsClemi/ews-managed-api/issues/12#issuecomment-2181344402, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA3ZMKGTEGXGNESW3TU4TKDZIMRIVAVCNFSM6AAAAABJUQIGYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRGM2DINBQGI . You are receiving this because you authored the thread.Message ID: @.***>
Hi
I'm trying to delete appointments year by year.
I had an exception raised at 150 occurences. I activated my service logging and found this wierd header going out EWS library :
`11/03/2024 01:15:16 EwsRequestHttpHeaders : <?xml version="1.0" encoding="utf-16"?>
`
It seems i have ghosts of my previous requests ? did I miss something ? here s the code, don't look at recurring items i haven't yet found the nice formula
` public async ATP.Task DeleteEvenementsOutlook(CalendarFolder Calendrier, int Annee) { int entreesTotales = 0, totalFinal = 0; string pluriel = "";