-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Hi,
I´m getting some exceptions with WebClients not supporting concurrent I/O operations.
11.07.2019 09:46:26 WebClient unterstützt keine gleichzeitigen E/A-Vorgänge. 11.07.2019 09:46:26 bei System.Net.WebClient.ClearWebClientState() bei System.Net.WebClient.DownloadString(Uri address) bei System.Net.WebClient.DownloadString(String address) bei Ovh.Api.Client.Call(String method, String path, String data, Boolean needAuth, Boolean isBatch) bei Ovh.Api.Client.Call[T](String method, String path, String data, Boolean needAuth, Boolean isBatch) bei Ovh.Api.Client.Get[T](String target, QueryStringParams kwargs, Boolean needAuth) bei OVHDomainSwitcher.Service.<>c__DisplayClass8_0.<OnStart>b__0(Object state) in E:\workspace\vs2017\ovhdomainswitcher\OVHDomainSwitcher\OVHDomainSwitcher\Service.cs:Zeile 172.
I use the "Get<>" method so I don´t think it´s async and I run it in sync on a for loop so a call and only execute when the pevious already finished, that causes some confusion on my side.
Could you check if the issue might be caused inside the API in any way ?
That´s my logic in pseudo-code:
ovh.getDomains()
foreach(domain in domains){
ovh.Get(RecordIDs)
ovh.Get(RecordID/Target)
if(ping target != success) {
ovh.Post(RecordID/Target, newIP)
}
}
Best regards,
Fabian