-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMbsSdkConfig.cs
executable file
·147 lines (123 loc) · 4.2 KB
/
MbsSdkConfig.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
namespace Sportradar.Mbs.Sdk;
/// <summary>
/// Represents the configuration for the <see cref="MbsSdk"/>
/// </summary>
public class MbsSdkConfig
{
/// <summary>
/// Initializes a new instance of the <see cref="MbsSdkConfig"/> class
/// </summary>
/// <param name="wsServer">WebSocket server URI</param>
/// <param name="authServer">Auth server URI</param>
/// <param name="authClientId">Auth client id</param>
/// <param name="authClientSecret">Auth client secret</param>
/// <param name="authAudience">Auth audience</param>
/// <param name="operatorId">Operator id</param>
public MbsSdkConfig(
Uri wsServer,
Uri authServer,
string authClientId,
string authClientSecret,
string authAudience,
long operatorId)
{
WsServer = wsServer;
AuthServer = authServer;
AuthClientId = authClientId;
AuthClientSecret = authClientSecret;
AuthAudience = authAudience;
OperatorId = operatorId;
}
/// <summary>
/// Gets or sets the WebSocket server URI
/// </summary>
public Uri WsServer { get; set; }
/// <summary>
/// Gets or sets the Auth server URI
/// </summary>
public Uri AuthServer { get; set; }
/// <summary>
/// Gets or sets the Auth client id
/// </summary>
public string AuthClientId { get; set; }
/// <summary>
/// Gets or sets the Auth client secret
/// </summary>
public string AuthClientSecret { get; set; }
/// <summary>
/// Gets or sets the Auth audience
/// </summary>
public string AuthAudience { get; set; }
/// <summary>
/// Gets or sets the Operator id
/// </summary>
public long OperatorId { get; set; }
/// <summary>
/// Gets or sets the Auth request timeout
/// </summary>
public TimeSpan? AuthRequestTimeout { get; set; }
/// <summary>
/// Gets or sets the Protocol connect timeout
/// </summary>
public TimeSpan? ProtocolConnectTimeout { get; set; }
/// <summary>
/// Gets or sets the Auth retry delay
/// </summary>
public TimeSpan? AuthRetryDelay { get; set; }
/// <summary>
/// Gets or sets the Protocol max send buffer size
/// </summary>
public int? ProtocolMaxSendBufferSize { get; set; }
/// <summary>
/// Gets or sets the Protocol enqueue timeout
/// </summary>
public TimeSpan? ProtocolEnqueueTimeout { get; set; }
/// <summary>
/// Gets or sets the Protocol dequeue timeout
/// </summary>
public TimeSpan? ProtocolDequeueTimeout { get; set; }
/// <summary>
/// Gets or sets the Protocol receive response timeout
/// </summary>
public TimeSpan? ProtocolReceiveResponseTimeout { get; set; }
/// <summary>
/// Gets or sets the Protocol retry count
/// </summary>
public int? ProtocolRetryCount { get; set; }
/// <summary>
/// Gets or sets the number of Protocol dispatchers
/// </summary>
public int? ProtocolNumberOfDispatchers { get; set; }
/// <summary>
/// Gets or sets the WebSocket reconnect timeout
/// </summary>
public TimeSpan? WsReconnectTimeout { get; set; }
/// <summary>
/// Gets or sets the WebSocket fetch message timeout
/// </summary>
public TimeSpan? WsFetchMessageTimeout { get; set; }
/// <summary>
/// Gets or sets the WebSocket send message timeout
/// </summary>
public TimeSpan? WsSendMessageTimeout { get; set; }
/// <summary>
/// Gets or sets the WebSocket receive message timeout
/// </summary>
public TimeSpan? WsReceiveMessageTimeout { get; set; }
/// <summary>
/// Gets or sets the WebSocket consumer grace timeout
/// </summary>
public TimeSpan? WsConsumerGraceTimeout { get; set; }
/// <summary>
/// Gets or sets the WebSocket refresh connection timeout
/// </summary>
public TimeSpan? WsRefreshConnectionTimeout { get; set; }
/// <summary>
/// Gets or sets the number of WebSocket connections
/// </summary>
public int? WsNumberOfConnections { get; set; }
/// <summary>
/// Gets or sets the unhandled exception handler
/// </summary>
public Action<MbsSdk, Exception>? UnhandledExceptionHandler { get; set; }
}