Hi, I'm just migrating from Microsoft.Exchange.WebServices.NETStandard to Exchange.WebServices.NETCore. Unfortunately, there's an Exception in AutoDiscoverService.PrepareHttpClient when setting the Timeout of the newly created HttpClient.
minimal code to reproduce (replace "***"):
const string server = "***";
const string mailAddress = "***";
AutodiscoverService service = new()
{
Url = new Uri($"https://{server}/autodiscover/autodiscover.svc")
};
Console.WriteLine(service.Timeout); // 0
await service.GetUserSettings(mailAddress, UserSettingName.ExternalEwsUrl); // ArgumentOutOfRangeException
System.ArgumentOutOfRangeException: "value ('00:00:00') must be greater than '00:00:00'.
Timeout always returns 0 (wenn set to full seconds).
ExchangeServiceBase.Timeout_get should return _httpClient.Timout.TotalMilliseconds (instead of .Milliseconds),
and for that the property type has to be double.
Would be great if you could fix this.
Thanks in advance.
Hi, I'm just migrating from Microsoft.Exchange.WebServices.NETStandard to Exchange.WebServices.NETCore. Unfortunately, there's an Exception in AutoDiscoverService.PrepareHttpClient when setting the Timeout of the newly created HttpClient.
minimal code to reproduce (replace "***"):
System.ArgumentOutOfRangeException: "value ('00:00:00') must be greater than '00:00:00'.
System.ArgumentOutOfRangeException.ThrowIfLessThanOrEqual[T](T value, T other, String paramName) System.ArgumentOutOfRangeException.ThrowLessEqual[T](T value, T other, String paramName) System.Net.Http.HttpClient.set_Timeout(TimeSpan value) Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.PrepareHttpClient() Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverRequest.d3.MoveNext()
Microsoft.Exchange.WebServices.Autodiscover.GetUserSettingsRequest.d 4.MoveNext()
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.d36.MoveNext()
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.d 35`2.MoveNext()
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.d33.MoveNext()
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.d 65.MoveNext()
Timeout always returns 0 (wenn set to full seconds).
ExchangeServiceBase.Timeout_get should return _httpClient.Timout.TotalMilliseconds (instead of .Milliseconds), and for that the property type has to be double.
Would be great if you could fix this. Thanks in advance.