Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
WebSocketCreationOptions.cs
Go to the documentation of this file.
1
using
System.Threading
;
2
3
namespace
System.Net.WebSockets
;
4
5
public
sealed
class
WebSocketCreationOptions
6
{
7
private
string
_subProtocol
;
8
9
private
TimeSpan
_keepAliveInterval
;
10
11
public
bool
IsServer
{
get
;
set
; }
12
13
public
string
?
SubProtocol
14
{
15
get
16
{
17
return
_subProtocol
;
18
}
19
set
20
{
21
if
(
value
!=
null
)
22
{
23
WebSocketValidate
.
ValidateSubprotocol
(
value
);
24
}
25
_subProtocol
=
value
;
26
}
27
}
28
29
public
TimeSpan
KeepAliveInterval
30
{
31
get
32
{
33
return
_keepAliveInterval
;
34
}
35
set
36
{
37
if
(
value
!=
Timeout
.
InfiniteTimeSpan
&&
value
<
TimeSpan
.
Zero
)
38
{
39
throw
new
ArgumentOutOfRangeException
(
"KeepAliveInterval"
,
value
,
System
.
SR
.
Format
(
System
.
SR
.
net_WebSockets_ArgumentOutOfRange_TooSmall
, 0));
40
}
41
_keepAliveInterval
=
value
;
42
}
43
}
44
45
public
WebSocketDeflateOptions
?
DangerousDeflateOptions
{
get
;
set
; }
46
}
System.ArgumentOutOfRangeException
Definition
ArgumentOutOfRangeException.cs:9
System.Net.WebSockets.WebSocketCreationOptions.SubProtocol
string? SubProtocol
Definition
WebSocketCreationOptions.cs:14
System.Net.WebSockets.WebSocketCreationOptions.DangerousDeflateOptions
WebSocketDeflateOptions? DangerousDeflateOptions
Definition
WebSocketCreationOptions.cs:45
System.Net.WebSockets.WebSocketCreationOptions.IsServer
bool IsServer
Definition
WebSocketCreationOptions.cs:11
System.Net.WebSockets.WebSocketCreationOptions.KeepAliveInterval
TimeSpan KeepAliveInterval
Definition
WebSocketCreationOptions.cs:30
System.Net.WebSockets.WebSocketCreationOptions._keepAliveInterval
TimeSpan _keepAliveInterval
Definition
WebSocketCreationOptions.cs:9
System.Net.WebSockets.WebSocketCreationOptions._subProtocol
string _subProtocol
Definition
WebSocketCreationOptions.cs:7
System.Net.WebSockets.WebSocketCreationOptions
Definition
WebSocketCreationOptions.cs:6
System.Net.WebSockets.WebSocketDeflateOptions
Definition
WebSocketDeflateOptions.cs:4
System.Net.WebSockets.WebSocketValidate.ValidateSubprotocol
static void ValidateSubprotocol(string subProtocol)
Definition
WebSocketValidate.cs:7
System.Net.WebSockets.WebSocketValidate
Definition
WebSocketValidate.cs:6
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:118
System.SR.net_WebSockets_ArgumentOutOfRange_TooSmall
static string net_WebSockets_ArgumentOutOfRange_TooSmall
Definition
SR.cs:146
System.SR
Definition
SR.cs:7
System.Threading.Timeout.InfiniteTimeSpan
static readonly TimeSpan InfiniteTimeSpan
Definition
Timeout.cs:5
System.Threading.Timeout
Definition
Timeout.cs:4
System.Net.WebSockets
Definition
HttpListenerWebSocketContext.cs:5
System.Threading
Definition
TaskToApm.cs:3
System.ExceptionArgument.value
@ value
System
Definition
BlockingCollection.cs:8
System.TimeSpan.Zero
static readonly TimeSpan Zero
Definition
TimeSpan.cs:21
System.TimeSpan
Definition
TimeSpan.cs:10
source
System.Net.WebSockets
System.Net.WebSockets
WebSocketCreationOptions.cs
Generated by
1.10.0