wasDAVClient
/wasDAVClient/Client.cs |
@@ -113,7 +113,7 @@ |
#endregion |
|
|
public Client(NetworkCredential credential = null, TimeSpan? timeout = null, IWebProxy proxy = null) |
public Client(NetworkCredential credential = null, TimeSpan? uploadTimeout = null, IWebProxy proxy = null) |
{ |
var handler = new HttpClientHandler(); |
if (proxy != null && handler.SupportsProxy) |
@@ -129,11 +129,11 @@ |
_client = new HttpClient(handler); |
_client.DefaultRequestHeaders.ExpectContinue = false; |
|
if (timeout != null) |
if (uploadTimeout != null) |
{ |
_uploadClient = new HttpClient(handler); |
_uploadClient.DefaultRequestHeaders.ExpectContinue = false; |
_uploadClient.Timeout = timeout.Value; |
_uploadClient.Timeout = uploadTimeout.Value; |
} |
|
} |
/wasDAVClient/wasDAVClient.csproj |
@@ -33,6 +33,10 @@ |
<Reference Include="System" /> |
<Reference Include="System.Core" /> |
<Reference Include="System.Web" /> |
<Reference Include="System.Xml.Linq" /> |
<Reference Include="System.Data.DataSetExtensions" /> |
<Reference Include="Microsoft.CSharp" /> |
<Reference Include="System.Data" /> |
<Reference Include="System.Net.Http" /> |
<Reference Include="System.Xml" /> |
</ItemGroup> |