Skip to content

Commit 9f33ea3

Browse files
Use TotalMilliseconds instead of Milliseconds for equest timeouts. (#4663)
Fixes #4433
1 parent 1e96a11 commit 9f33ea3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Csla/DataPortalClient/HttpProxy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ protected override WebRequest GetWebRequest(Uri address)
265265
{
266266
if (readWriteTimeout > TimeSpan.Zero)
267267
{
268-
httpWebRequest.ReadWriteTimeout = readWriteTimeout.Milliseconds;
268+
httpWebRequest.ReadWriteTimeout = (int)readWriteTimeout.TotalMilliseconds;
269269
}
270270
}
271271
if (timeout > TimeSpan.Zero)
272272
{
273-
req.Timeout = timeout.Milliseconds;
273+
req.Timeout = (int)timeout.TotalMilliseconds;
274274
}
275275
return req;
276276
}

0 commit comments

Comments
 (0)