source: TFP-WebServer/SpaceWizards.HttpListener/src/SR.cs@ 445

Last change on this file since 445 was 376, checked in by alloc, 2 years ago

Added SpaceWizards.HttpListener for HTTP IPv6 support

File size: 14.6 KB
Line 
1namespace System
2{
3 internal static class SR
4 {
5 internal static string Format(string resourceFormat, object? p1)
6 {
7 return string.Format(resourceFormat, p1);
8 }
9
10 internal static string Format(string resourceFormat, object? p1, object? p2)
11 {
12 return string.Format(resourceFormat, p1, p2);
13 }
14
15 internal static string Format(string resourceFormat, object? p1, object? p2, object? p3)
16 {
17 return string.Format(resourceFormat, p1, p2, p3);
18 }
19
20 internal static string Format(string resourceFormat, params object?[]? args)
21 {
22 if (args != null)
23 {
24 return string.Format(resourceFormat, args);
25 }
26
27 return resourceFormat;
28 }
29
30 internal static string Format(IFormatProvider? provider, string resourceFormat, object? p1)
31 {
32 return string.Format(provider, resourceFormat, p1);
33 }
34
35 internal static string Format(IFormatProvider? provider, string resourceFormat, object? p1, object? p2)
36 {
37 return string.Format(provider, resourceFormat, p1, p2);
38 }
39
40 internal static string Format(IFormatProvider? provider, string resourceFormat, object? p1, object? p2,
41 object? p3)
42 {
43 return string.Format(provider, resourceFormat, p1, p2, p3);
44 }
45
46 internal static string Format(IFormatProvider? provider, string resourceFormat, params object?[]? args)
47 {
48 if (args != null)
49 {
50 return string.Format(provider, resourceFormat, args);
51 }
52
53 return resourceFormat;
54 }
55
56
57 public const string net_log_listener_delegate_exception =
58 "Sending 500 response, AuthenticationSchemeSelectorDelegate threw an exception: {0}.";
59
60 public const string net_log_listener_unsupported_authentication_scheme =
61 "Received a request with an unsupported authentication scheme, Authorization:{0} SupportedSchemes:{1}.";
62
63 public const string net_log_listener_unmatched_authentication_scheme =
64 "Received a request with an unmatched or no authentication scheme. AuthenticationSchemes:{0}, Authorization:{1}.";
65
66 public const string net_io_invalidasyncresult =
67 "The IAsyncResult object was not returned from the corresponding asynchronous method on this class.";
68
69 public const string net_io_invalidendcall = "{0} can only be called once for each asynchronous operation.";
70 public const string net_listener_cannot_set_custom_cbt = "Custom channel bindings are not supported.";
71 public const string net_listener_detach_error = "Can't detach Url group from request queue. Status code: {0}.";
72
73 public const string net_listener_scheme =
74 "Only Uri prefixes starting with 'http://' or 'https://' are supported.";
75
76 public const string net_listener_host = "Only Uri prefixes with a valid hostname are supported.";
77 public const string net_listener_not_supported = "The request is not supported.";
78 public const string net_listener_mustcall = "Please call the {0} method before calling this method.";
79 public const string net_listener_slash = "Only Uri prefixes ending in '/' are allowed.";
80
81 public const string net_listener_already =
82 "Failed to listen on prefix '{0}' because it conflicts with an existing registration on the machine.";
83
84 public const string net_log_listener_no_cbt_disabled =
85 "No channel binding check because extended protection is disabled.";
86
87 public const string net_log_listener_no_cbt_http =
88 "No channel binding check for requests without a secure channel.";
89
90 public const string net_log_listener_no_cbt_trustedproxy =
91 "No channel binding check for the trusted proxy scenario.";
92
93 public const string net_log_listener_cbt = "Channel binding check enabled.";
94
95 public const string net_log_listener_no_spn_kerberos =
96 "No explicit service name check because Kerberos authentication already validates the service name.";
97
98 public const string net_log_listener_no_spn_disabled =
99 "No service name check because extended protection is disabled.";
100
101 public const string net_log_listener_no_spn_cbt =
102 "No service name check because the channel binding was already checked.";
103
104 public const string net_log_listener_no_spn_whensupported =
105 "No service name check because the client did not provide a service name and the server was configured for PolicyEnforcement.WhenSupported.";
106
107 public const string net_log_listener_no_spn_loopback =
108 "No service name check because the authentication was from a client on the local machine.";
109
110 public const string net_log_listener_spn = "Client provided service name '{0}'.";
111 public const string net_log_listener_spn_passed = "Service name check succeeded.";
112 public const string net_log_listener_spn_failed = "Service name check failed.";
113
114 public const string net_log_listener_spn_failed_always =
115 "Service name check failed because the client did not provide a service name and the server was configured for PolicyEnforcement.Always.";
116
117 public const string net_log_listener_spn_failed_empty = "No acceptable service names were configured!";
118 public const string net_log_listener_spn_failed_dump = "Dumping acceptable service names:";
119 public const string net_log_listener_spn_add = "Adding default service name '{0}' from prefix '{1}'.";
120 public const string net_log_listener_spn_not_add = "No default service name added for prefix '{0}'.";
121 public const string net_log_listener_spn_remove = "Removing default service name '{0}' from prefix '{1}'.";
122 public const string net_log_listener_spn_not_remove = "No default service name removed for prefix '{0}'.";
123
124 public const string net_listener_no_spns =
125 "No service names could be determined from the registered prefixes. Either add prefixes from which default service names can be derived or specify an ExtendedProtectionPolicy object which contains an explicit list of service names.";
126
127 public const string net_ssp_dont_support_cbt =
128 "The Security Service Providers don't support extended protection. Please install the latest Security Service Providers update.";
129
130 public const string net_PropertyNotImplementedException = "This property is not implemented by this class.";
131 public const string net_array_too_small = "The target array is too small.";
132 public const string net_listener_mustcompletecall = "The in-progress method {0} must be completed first.";
133 public const string net_listener_invalid_cbt_type = "Querying the {0} Channel Binding is not supported.";
134
135 public const string net_listener_callinprogress =
136 "Cannot re-call {0} while a previous call is still in progress.";
137
138 public const string net_log_listener_cant_create_uri = "Can't create Uri from string '{0}://{1}{2}{3}'.";
139
140 public const string net_log_listener_cant_convert_raw_path =
141 "Can't convert Uri path '{0}' using encoding '{1}'.";
142
143 public const string net_log_listener_cant_convert_percent_value = "Can't convert percent encoded value '{0}'.";
144 public const string net_log_listener_cant_convert_to_utf8 = "Can't convert string '{0}' into UTF-8 bytes: {1}";
145
146 public const string net_log_listener_cant_convert_bytes =
147 "Can't convert bytes '{0}' into UTF-16 characters: {1}";
148
149 public const string net_invalidstatus = "The status code must be exactly three digits.";
150 public const string net_WebHeaderInvalidControlChars = "Specified value has invalid Control characters.";
151
152 public const string net_rspsubmitted =
153 "This operation cannot be performed after the response has been submitted.";
154
155 public const string net_nochunkuploadonhttp10 =
156 "Chunked encoding upload is not supported on the HTTP/1.0 protocol.";
157
158 public const string net_cookie_exists = "Cookie already exists.";
159 public const string net_clsmall = "The Content-Length value must be greater than or equal to zero.";
160 public const string net_wrongversion = "Only HTTP/1.0 and HTTP/1.1 version requests are currently supported.";
161 public const string net_noseek = "This stream does not support seek operations.";
162 public const string net_writeonlystream = "The stream does not support reading.";
163
164 public const string net_entitytoobig =
165 "Bytes to be written to the stream exceed the Content-Length bytes size specified.";
166
167 public const string net_io_notenoughbyteswritten = "Cannot close stream until all bytes are written.";
168 public const string net_listener_close_urlgroup_error = "Can't close Url group. Status code: {0}.";
169
170 public const string net_WebSockets_NativeSendResponseHeaders =
171 "An error occurred when sending the WebSocket HTTP upgrade response during the {0} operation. The HRESULT returned is '{1}'";
172
173 public const string net_WebSockets_ClientAcceptingNoProtocols =
174 "The WebSocket client did not request any protocols, but server attempted to accept '{0}' protocol(s). ";
175
176 public const string net_WebSockets_AcceptUnsupportedProtocol =
177 "The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).";
178
179 public const string net_WebSockets_AcceptNotAWebSocket =
180 "The {0} operation was called on an incoming request that did not specify a '{1}: {2}' header or the {2} header not contain '{3}'. {2} specified by the client was '{4}'.";
181
182 public const string net_WebSockets_AcceptHeaderNotFound =
183 "The {0} operation was called on an incoming WebSocket request without required '{1}' header. ";
184
185 public const string net_WebSockets_AcceptUnsupportedWebSocketVersion =
186 "The {0} operation was called on an incoming request with WebSocket version '{1}', expected '{2}'. ";
187
188 public const string net_WebSockets_InvalidEmptySubProtocol =
189 "Empty string is not a valid subprotocol value. Please use \"null\" to specify no value.";
190
191 public const string net_WebSockets_InvalidCharInProtocolString =
192 "The WebSocket protocol '{0}' is invalid because it contains the invalid character '{1}'.";
193
194 public const string net_WebSockets_ReasonNotNull =
195 "The close status description '{0}' is invalid. When using close status code '{1}' the description must be null.";
196
197 public const string net_WebSockets_InvalidCloseStatusCode =
198 "The close status code '{0}' is reserved for system use only and cannot be specified when calling this method.";
199
200 public const string net_WebSockets_InvalidCloseStatusDescription =
201 "The close status description '{0}' is too long. The UTF8-representation of the status description must not be longer than {1} bytes.";
202
203 public const string net_WebSockets_ArgumentOutOfRange_TooSmall =
204 "The argument must be a value greater than {0}.";
205
206 public const string net_WebSockets_ArgumentOutOfRange_TooBig =
207 "The value of the '{0}' parameter ({1}) must be less than or equal to {2}.";
208
209 public const string net_WebSockets_UnsupportedPlatform =
210 "The WebSocket protocol is not supported on this platform.";
211
212 public const string net_readonlystream = "The stream does not support writing.";
213
214 public const string net_WebSockets_InvalidState_ClosedOrAborted =
215 "The '{0}' instance cannot be used for communication because it has been transitioned into the '{1}' state.";
216
217 public const string net_WebSockets_ReceiveAsyncDisallowedAfterCloseAsync =
218 "The WebSocket is in an invalid state for this operation. The '{0}' method has already been called before on this instance. Use '{1}' instead to keep being able to receive data but close the output channel.";
219
220 public const string net_Websockets_AlreadyOneOutstandingOperation =
221 "There is already one outstanding '{0}' call for this WebSocket instance. ReceiveAsync and SendAsync can be called simultaneously, but at most one outstanding operation for each of them is allowed at the same time.";
222
223 public const string net_WebSockets_InvalidMessageType =
224 "The received message type '{2}' is invalid after calling {0}. {0} should only be used if no more data is expected from the remote endpoint. Use '{1}' instead to keep being able to receive data but close the output channel.";
225
226 public const string net_WebSockets_InvalidBufferType =
227 "The buffer type '{0}' is invalid. Valid buffer types are: '{1}', '{2}', '{3}', '{4}', '{5}'.";
228
229 public const string net_WebSockets_ArgumentOutOfRange_InternalBuffer =
230 "The byte array must have a length of at least '{0}' bytes. ";
231
232 public const string net_WebSockets_Argument_InvalidMessageType =
233 "The message type '{0}' is not allowed for the '{1}' operation. Valid message types are: '{2}, {3}'. To close the WebSocket, use the '{4}' operation instead. ";
234
235 public const string net_securitypackagesupport = "The requested security package is not supported.";
236 public const string net_log_operation_failed_with_error = "{0} failed with error {1}.";
237 public const string net_MethodNotImplementedException = "This method is not implemented by this class.";
238 public const string event_OperationReturnedSomething = "{0} returned {1}.";
239 public const string net_invalid_enum = "The specified value is not valid in the '{0}' enumeration.";
240
241 public const string net_auth_message_not_encrypted =
242 "Protocol error: A received message contains a valid signature but it was not encrypted as required by the effective Protection Level.";
243
244 public const string SSPIInvalidHandleType = "'{0}' is not a supported handle type.";
245 public const string net_io_operation_aborted = "I/O operation aborted: '{0}'.";
246 public const string net_invalid_path = "Invalid path.";
247 public const string net_listener_auth_errors = "Authentication errors.";
248 public const string net_listener_close = "Listener closed.";
249 public const string net_invalid_port = "Invalid port in prefix.";
250
251 public const string net_WebSockets_InvalidState =
252 "The WebSocket is in an invalid state ('{0}') for this operation. Valid states are: '{1}'";
253
254 public const string SystemNetHttpListener_PlatformNotSupported =
255 "System.Net.HttpListener is not supported on this platform.";
256 }
257}
Note: See TracBrowser for help on using the repository browser.