diff --git a/src/Seq.Api/Client/SeqApiClient.cs b/src/Seq.Api/Client/SeqApiClient.cs
index 6de445c..f505450 100644
--- a/src/Seq.Api/Client/SeqApiClient.cs
+++ b/src/Seq.Api/Client/SeqApiClient.cs
@@ -15,7 +15,6 @@
using System;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
@@ -26,7 +25,6 @@
using Seq.Api.Model;
using Seq.Api.Model.Root;
using Seq.Api.Serialization;
-using Tavis.UriTemplates;
using System.Threading;
using Seq.Api.Streams;
using System.Net.WebSockets;
@@ -58,9 +56,7 @@ public class SeqApiClient : IDisposable
/// The base URL of the Seq server.
/// An API key to use when making requests to the server, if required.
/// Whether default credentials will be sent with HTTP requests; the default is true.
- /// The time to wait before canceling long-running HTTP requests; the default (null) is to use the
- /// system request timeout, normally 100 seconds. To disable timing out at the client, pass .
- public SeqApiClient(string serverUrl, string apiKey = null, bool useDefaultCredentials = true, TimeSpan? requestTimeout = null)
+ public SeqApiClient(string serverUrl, string apiKey = null, bool useDefaultCredentials = true)
{
ServerUrl = serverUrl ?? throw new ArgumentNullException(nameof(serverUrl));
@@ -82,9 +78,6 @@ public SeqApiClient(string serverUrl, string apiKey = null, bool useDefaultCrede
if (_apiKey != null)
HttpClient.DefaultRequestHeaders.Add("X-Seq-ApiKey", _apiKey);
-
- if (requestTimeout != null)
- HttpClient.Timeout = requestTimeout.Value;
}
///
diff --git a/src/Seq.Api/SeqConnection.cs b/src/Seq.Api/SeqConnection.cs
index 3c03704..900968b 100644
--- a/src/Seq.Api/SeqConnection.cs
+++ b/src/Seq.Api/SeqConnection.cs
@@ -39,12 +39,10 @@ public class SeqConnection : ISeqConnection
/// The base URL of the Seq server.
/// An API key to use when making requests to the server, if required.
/// Whether default credentials will be sent with HTTP requests; the default is true.
- /// The time to wait before canceling long-running HTTP requests; the default (null) is to use the
- /// system request timeout, normally 100 seconds. To disable timing out at the client, pass .
- public SeqConnection(string serverUrl, string apiKey = null, bool useDefaultCredentials = true, TimeSpan? requestTimeout = null)
+ public SeqConnection(string serverUrl, string apiKey = null, bool useDefaultCredentials = true)
{
if (serverUrl == null) throw new ArgumentNullException(nameof(serverUrl));
- Client = new SeqApiClient(serverUrl, apiKey, useDefaultCredentials, requestTimeout);
+ Client = new SeqApiClient(serverUrl, apiKey, useDefaultCredentials);
}
///