Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ClientWebSocketOptions.cs
Go to the documentation of this file.
6
8
9public sealed class ClientWebSocketOptions
10{
11 private bool _isReadOnly;
12
14
16
18
20
22
23 private int _receiveBufferSize = 4096;
24
26
27 private RemoteCertificateValidationCallback _remoteCertificateValidationCallback;
28
30
32
34
36
38
39 [UnsupportedOSPlatform("browser")]
41 {
42 get
43 {
45 }
46 set
47 {
50 }
51 }
52
53 [UnsupportedOSPlatform("browser")]
55 {
56 get
57 {
58 return _credentials;
59 }
60 set
61 {
64 }
65 }
66
67 [UnsupportedOSPlatform("browser")]
69 {
70 get
71 {
72 return _proxy;
73 }
74 set
75 {
77 _proxy = value;
78 }
79 }
80
81 [UnsupportedOSPlatform("browser")]
83 {
84 get
85 {
87 }
88 set
89 {
91 _clientCertificates = value ?? throw new ArgumentNullException("value");
92 }
93 }
94
95 [UnsupportedOSPlatform("browser")]
96 public RemoteCertificateValidationCallback? RemoteCertificateValidationCallback
97 {
98 get
99 {
101 }
102 set
103 {
106 }
107 }
108
109 [UnsupportedOSPlatform("browser")]
111 {
112 get
113 {
114 return _cookies;
115 }
116 set
117 {
119 _cookies = value;
120 }
121 }
122
123 [UnsupportedOSPlatform("browser")]
125 {
126 get
127 {
128 return _keepAliveInterval;
129 }
130 set
131 {
134 {
136 }
138 }
139 }
140
141 [UnsupportedOSPlatform("browser")]
143
145 {
146 }
147
148 [UnsupportedOSPlatform("browser")]
149 public void SetRequestHeader(string headerName, string? headerValue)
150 {
153 }
154
169
170 [UnsupportedOSPlatform("browser")]
185
186 [UnsupportedOSPlatform("browser")]
206
207 internal void SetToReadOnly()
208 {
209 _isReadOnly = true;
210 }
211
212 private void ThrowIfReadOnly()
213 {
214 if (_isReadOnly)
215 {
217 }
218 }
219}
void Add(TKey key, TValue value)
override void Set(string name, string? value)
void SetBuffer(int receiveBufferSize, int sendBufferSize, ArraySegment< byte > buffer)
void SetBuffer(int receiveBufferSize, int sendBufferSize)
void SetRequestHeader(string headerName, string? headerValue)
RemoteCertificateValidationCallback _remoteCertificateValidationCallback
static void ValidateSubprotocol(string subProtocol)
static void ValidateArraySegment(ArraySegment< byte > arraySegment, string parameterName)
static TimeSpan DefaultKeepAliveInterval
Definition WebSocket.cs:20
static string net_WebSockets_NoDuplicateProtocol
Definition SR.cs:38
static string net_WebSockets_AlreadyStarted
Definition SR.cs:32
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_WebSockets_ArgumentOutOfRange_TooSmall
Definition SR.cs:146
Definition SR.cs:7
static readonly TimeSpan InfiniteTimeSpan
Definition Timeout.cs:5
static readonly TimeSpan Zero
Definition TimeSpan.cs:21