Skip to content

Commit e0b39b1

Browse files
Added timeout value
1 parent e48f62c commit e0b39b1

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

Example Projects/dotNetCoreExample/Examples/Basic/BasicSendWithProxy.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class BasicSendWithProxy : IExample
88
{
99
public SendResponse RunExample()
1010
{
11-
// var proxy = new WebProxy("http://localhost.:8888", false);
11+
// var proxy = new WebProxy("http://localhost.:8888", false);
1212

1313
var proxy = new WebProxy("http://localhost:4433", false);
1414

@@ -28,7 +28,6 @@ public SendResponse RunExample()
2828
message.To.Add("recipient1@example.com");
2929

3030
client.RequestTimeout = 50;
31-
3231
return client.Send(message);
3332
}
3433
}

Example Projects/dotNetCoreExample/Examples/ExampleConfig.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ public static class ExampleConfig
55
{
66
//public static int ServerId => Environment.GetEnvironmentVariable("SocketlabsServerId", EnvironmentVariableTarget.User);
77
//public static string ApiKey => Environment.GetEnvironmentVariable("SocketlabsApiPassword", EnvironmentVariableTarget.User);
8-
public static string TargetApi = "https://inject.socketlabs.com/api/v1/email";
8+
public static string TargetApi = "https://inject.socketlabs.com/api/v1/email";
99

10-
11-
1210
public static int ServerId => int.Parse(Environment.GetEnvironmentVariable("SocketlabsServerId", EnvironmentVariableTarget.User));
1311
public static string ApiKey => Environment.GetEnvironmentVariable("SocketlabsApiPassword", EnvironmentVariableTarget.User);
14-
15-
12+
13+
1614
}
1715
}

src/SocketLabs/InjectionApi/SocketLabsClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public class SocketLabsClient : ISocketLabsClient, IDisposable
4747
/// <summary>
4848
/// A timeout occurred sending the message
4949
/// </summary>
50-
5150
public int RequestTimeout { get; set; } = 120;
5251

5352

53+
5454
/// <summary>
5555
/// Creates a new instance of the <c>SocketLabsClient</c>.
5656
/// </summary>

0 commit comments

Comments
 (0)