aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Web/TangoWebClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/TangoWebClient.cs')
-rw-r--r--Software/Visual_Studio/Tango.Web/TangoWebClient.cs28
1 files changed, 2 insertions, 26 deletions
diff --git a/Software/Visual_Studio/Tango.Web/TangoWebClient.cs b/Software/Visual_Studio/Tango.Web/TangoWebClient.cs
index 7c3c6ad2a..1d2f9fc8e 100644
--- a/Software/Visual_Studio/Tango.Web/TangoWebClient.cs
+++ b/Software/Visual_Studio/Tango.Web/TangoWebClient.cs
@@ -37,12 +37,6 @@ namespace Tango.Web
public WebToken WebToken { get; private set; }
public bool IsAuthenticated { get; private set; }
- public TimeSpan RequestTimeout
- {
- get { return _client.RequestTimeout; }
- set { _client.RequestTimeout = value; }
- }
-
public TangoWebClient(DeploymentSlot environment, String controller)
{
_client = new WebTransportClient();
@@ -63,24 +57,6 @@ namespace Tango.Web
Token = token;
}
- public TangoWebClient(TangoWebClient<TLoginRequest, TLoginResponse> cloned)
- {
- _client = new WebTransportClient();
- Environment = cloned.Environment;
- Address = cloned.Address;
- Controller = cloned.Controller;
- IsAuthenticated = cloned.IsAuthenticated;
- RequestTimeout = cloned.RequestTimeout;
- WebToken = cloned.WebToken;
- _lastLoginRequest = cloned._lastLoginRequest;
- Token = cloned.Token;
- }
-
- public T Clone<T>() where T : TangoWebClient<TLoginRequest, TLoginResponse>
- {
- return Activator.CreateInstance(typeof(T), new object[] { this }) as T;
- }
-
public async Task<TLoginResponse> Login(TLoginRequest request)
{
var response = await _client.PostJson<TLoginRequest, TLoginResponse>(GetActionAddress("Login"), request);
@@ -109,7 +85,7 @@ namespace Tango.Web
var response = await _client.PostJson<TRequest, TResponse>(GetActionAddress(action), request);
return response;
}
- catch (TokenExpiredException ex)
+ catch (TokenExpiredException)
{
try
{
@@ -122,7 +98,7 @@ namespace Tango.Web
throw;
}
}
- catch (Exception ex)
+ catch
{
throw;
}