-
Notifications
You must be signed in to change notification settings - Fork 2k
/
ConnectionOptions.cs
29 lines (25 loc) · 1.04 KB
/
ConnectionOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using Orleans.Runtime.Messaging;
namespace Orleans.Configuration
{
public class ConnectionOptions
{
/// <summary>
/// The network protocol version to negotiate with.
/// </summary>
public NetworkProtocolVersion ProtocolVersion { get; set; } = NetworkProtocolVersion.Version1;
/// <summary>
/// The number of connections to maintain for each endpoint.
/// </summary>
public int ConnectionsPerEndpoint { get; set; } = 1;
/// <summary>
/// The amount of time to wait after a failed connection attempt before retrying the connection.
/// </summary>
public TimeSpan ConnectionRetryDelay { get; set; } = TimeSpan.FromSeconds(1);
/// <summary>
/// The timeout before a connection open is assumed to have failed
/// </summary>
public TimeSpan OpenConnectionTimeout { get; set; } = DEFAULT_OPENCONNECTION_TIMEOUT;
public static readonly TimeSpan DEFAULT_OPENCONNECTION_TIMEOUT = TimeSpan.FromSeconds(5);
}
}