Home
last modified time | relevance | path

Searched refs:HttpListenerException (Results 1 – 25 of 67) sorted by relevance

123

/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/net/System/Net/
H A DHttpListenerException.cs15 public class HttpListenerException : Win32Exception class
17 public HttpListenerException() : base(Marshal.GetLastWin32Error()) in HttpListenerException() method in System.Net.HttpListenerException
22 public HttpListenerException(int errorCode) : base(errorCode) in HttpListenerException() method in System.Net.HttpListenerException
27 public HttpListenerException(int errorCode, string message) : base(errorCode, message) in HttpListenerException() method in System.Net.HttpListenerException
32 …protected HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingCon… in HttpListenerException() method in System.Net.HttpListenerException
H A D_ListenerAsyncResult.cs43 result = new HttpListenerException((int)errorCode); in IOCompleted()
87 result = new HttpListenerException((int)statusCode); in IOCompleted()
H A DHttpListener.cs514 HttpListenerException exception = new HttpListenerException((int)statusCode); in SetUrlGroupProperty()
681 throw new HttpListenerException((int)statusCode); in AddPrefix()
801 throw new HttpListenerException((int)statusCode); in SetupV2Config()
813 throw new HttpListenerException((int)statusCode); in SetupV2Config()
864 catch (HttpListenerException) { in Start()
996 throw new HttpListenerException((int)statusCode); in CreateRequestQueueHandle()
1006 throw new HttpListenerException(Marshal.GetLastWin32Error()); in CreateRequestQueueHandle()
1133 throw new HttpListenerException((int)statusCode); in AddAllPrefixes()
1195 throw new HttpListenerException((int)statusCode); in GetContext()
1267 throw new HttpListenerException((int)statusCode); in BeginGetContext()
[all …]
H A D_ListenerRequestStream.cs166 Exception exception = new HttpListenerException((int)statusCode); in Read()
271 Exception exception = new HttpListenerException((int)statusCode); in BeginRead()
401 result = new HttpListenerException((int)errorCode); in IOCompleted()
H A D_ListenerResponseStream.cs221 Exception exception = new HttpListenerException((int)statusCode); in Write()
303 Exception exception = new HttpListenerException((int)statusCode); in BeginWrite()
444 Exception exception = new HttpListenerException((int)statusCode); in Dispose()
591 result = new HttpListenerException((int)errorCode); in IOCompleted()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/src/System/Net/
H A DHttpListenerException.cs15 public class HttpListenerException : Win32Exception class
17 public HttpListenerException() : base(Marshal.GetLastWin32Error()) in HttpListenerException() method in System.Net.HttpListenerException
22 public HttpListenerException(int errorCode) : base(errorCode) in HttpListenerException() method in System.Net.HttpListenerException
27 public HttpListenerException(int errorCode, string message) : base(errorCode, message) in HttpListenerException() method in System.Net.HttpListenerException
32 …protected HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingCon… in HttpListenerException() method in System.Net.HttpListenerException
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/src/System/Net/Managed/
H A DHttpEndPointManager.cs90 … throw new HttpListenerException((int)HttpStatusCode.BadRequest, SR.net_invalid_port); in AddPrefixInternal()
96 … throw new HttpListenerException((int)HttpStatusCode.BadRequest, SR.net_listener_host); in AddPrefixInternal()
99 … throw new HttpListenerException((int)HttpStatusCode.BadRequest, SR.net_invalid_path); in AddPrefixInternal()
102 … throw new HttpListenerException((int)HttpStatusCode.BadRequest, SR.net_invalid_path); in AddPrefixInternal()
126 … throw new HttpListenerException(NotSupportedErrorCode, SR.net_listener_not_supported); in GetEPListener()
132 … throw new HttpListenerException(NotSupportedErrorCode, SR.net_listener_not_supported); in GetEPListener()
160 throw new HttpListenerException(ex.ErrorCode, ex.Message); in GetEPListener()
H A DHttpResponseStream.Managed.cs83 catch (HttpListenerException) in DisposeCore()
155 throw new HttpListenerException(ex.HResult, ex.Message); in InternalWrite()
257 throw new HttpListenerException(ex.HResult, ex.Message); in BeginWriteCore()
295 throw new HttpListenerException(ex.HResult, ex.Message); in EndWriteCore()
H A DListenerAsyncResult.Managed.cs69 …_exception = new HttpListenerException((int)HttpStatusCode.InternalServerError, SR.net_listener_cl… in Complete()
170 …Complete(new HttpListenerException((int)HttpStatusCode.Unauthorized, SR.net_listener_auth_errors)); in Complete()
H A DHttpRequestStream.Managed.cs118 throw new HttpListenerException((int)HttpStatusCode.BadRequest); in ReadCore()
205 throw new HttpListenerException((int)HttpStatusCode.BadRequest); in EndRead()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/tests/
H A DHttpListenerPrefixCollectionTests.cs212 catch (HttpListenerException) in Add_AlreadyStarted_ReturnsExpected()
231 Assert.Throws<HttpListenerException>(() => listener.Start()); in Add_PrefixAlreadyRegisteredAndNotStarted_ThrowsHttpListenerException()
261 Assert.Throws<HttpListenerException>(() => listener.Prefixes.Add(uriPrefix)); in Add_PrefixAlreadyRegisteredAndStarted_ThrowsHttpListenerException()
316 Assert.Throws<HttpListenerException>(() => listener1.Prefixes.Add(prefix1)); in Add_SamePortDifferentPathDifferentListenerStarted_Works()
317 … Assert.Throws<HttpListenerException>(() => listener1.Prefixes.Add($"{prefix1}hola/")); in Add_SamePortDifferentPathDifferentListenerStarted_Works()
320 Assert.Throws<HttpListenerException>(() => listener2.Prefixes.Add(prefix2)); in Add_SamePortDifferentPathDifferentListenerStarted_Works()
321 … Assert.Throws<HttpListenerException>(() => listener2.Prefixes.Add($"{prefix2}hola/")); in Add_SamePortDifferentPathDifferentListenerStarted_Works()
344 … Assert.Throws<HttpListenerException>(() => listener1.Prefixes.Add($"{prefix1}hola/")); in Add_SamePortDifferentPathMultipleStarted_Success()
380 Assert.Throws<HttpListenerException>(() => listener.Start()); in Add_InvalidPrefixNotStarted_ThrowsHttpListenerExceptionOnStart()
393 Assert.Throws<HttpListenerException>(() => listener.Prefixes.Add(uriPrefix)); in Add_InvalidPrefixAlreadyStarted_ThrowsHttpListenerExceptionOnAdd()
[all …]
H A DHttpResponseStreamTests.cs411 …await Assert.ThrowsAsync<HttpListenerException>(() => context.Response.OutputStream.WriteAsync(buf… in Write_HeadersToClosedConnectionAsynchronously_ThrowsHttpListenerException()
450 …Assert.Throws<HttpListenerException>(() => context.Response.OutputStream.Write(buffer, 0, buffer.L… in Write_HeadersToClosedConnectionSynchronously_ThrowsHttpListenerException()
490 …await Assert.ThrowsAsync<HttpListenerException>(() => context.Response.OutputStream.WriteAsync(buf… in Write_ContentToClosedConnectionAsynchronously_ThrowsHttpListenerException()
530 …Assert.Throws<HttpListenerException>(() => context.Response.OutputStream.Write(buffer, 0, buffer.L… in Write_ContentToClosedConnectionSynchronously_ThrowsHttpListenerException()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/ref/
H A DSystem.Net.HttpListener.cs56 public partial class HttpListenerException : System.ComponentModel.Win32Exception class
58 public HttpListenerException() { } in HttpListenerException() method in System.Net.HttpListenerException
59 public HttpListenerException(int errorCode) { } in HttpListenerException() method in System.Net.HttpListenerException
60 public HttpListenerException(int errorCode, string message) { } in HttpListenerException() method in System.Net.HttpListenerException
61 …protected HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingCon… in HttpListenerException() method in System.Net.HttpListenerException
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.ServiceModel/System/ServiceModel/Channels/
H A DSharedHttpTransportManager.cs148 catch (HttpListenerException e) in BeginGetContext()
220 catch (HttpListenerException e) in OnGetContextCore()
360 catch (HttpListenerException e) in HandleHttpContextReceived()
410 bool HandleHttpException(HttpListenerException e) in HandleHttpException()
603 catch (HttpListenerException listenerException) in OnOpen()
H A DHttpRequestContext.cs877 catch (HttpListenerException listenerException) in OnClose()
1017 catch (HttpListenerException listenerException) in BeginRead()
1030 catch (HttpListenerException listenerException) in EndRead()
1043 catch (HttpListenerException listenerException) in Read()
1056 catch (HttpListenerException listenerException) in ReadByte()
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/System.Net/
H A DListenerAsyncResult.cs60 exception = new HttpListenerException (500, "Listener closed"); in Complete()
113 Complete (new HttpListenerException (400, "Too many authentication errors")); in Complete()
H A DEndPointManager.cs70 throw new HttpListenerException (400, "Invalid path."); in AddPrefixInternal()
73 throw new HttpListenerException (400, "Invalid path."); in AddPrefixInternal()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.HttpListener/src/System/Net/Windows/
H A DListenerAsyncResult.Windows.cs33 result = new HttpListenerException((int)errorCode); in IOCompleted()
77 result = new HttpListenerException((int)statusCode); in IOCompleted()
H A DHttpListener.Windows.cs121 HttpListenerException exception = new HttpListenerException((int)statusCode); in SetUrlGroupProperty()
218 throw new HttpListenerException((int)statusCode); in SetupV2Config()
231 throw new HttpListenerException((int)statusCode); in SetupV2Config()
287 catch (HttpListenerException) in Start()
436 throw new HttpListenerException((int)statusCode); in CreateRequestQueueHandle()
446 throw new HttpListenerException(Marshal.GetLastWin32Error()); in CreateRequestQueueHandle()
555 …throw new HttpListenerException((int)statusCode, SR.Format(SR.net_listener_already, registeredPref… in AddPrefixCore()
557 throw new HttpListenerException((int)statusCode); in AddPrefixCore()
624 throw new HttpListenerException((int)statusCode); in GetContext()
703 throw new HttpListenerException((int)statusCode); in BeginGetContext()
[all …]
H A DHttpRequestStream.Windows.cs97 Exception exception = new HttpListenerException((int)statusCode); in ReadCore()
205 Exception exception = new HttpListenerException((int)statusCode); in BeginReadCore()
327 result = new HttpListenerException((int)errorCode); in IOCompleted()
H A DHttpResponseStream.Windows.cs141 Exception exception = new HttpListenerException((int)statusCode); in WriteCore()
220 Exception exception = new HttpListenerException((int)statusCode); in BeginWriteCore()
367 Exception exception = new HttpListenerException((int)statusCode); in DisposeCore()
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/Test/System.Net/
H A DHttpListenerTest.cs216 [ExpectedException (typeof (HttpListenerException))]
234 [ExpectedException (typeof (HttpListenerException))]
250 [ExpectedException (typeof (HttpListenerException))]
490 [ExpectedException (typeof (HttpListenerException))]
511 [ExpectedException (typeof (HttpListenerException))]
/dports/lang/mono/mono-5.10.1.57/mcs/class/Facades/System.Net.HttpListener/
H A DTypeForwarders.cs27 …System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.HttpListenerException))]
/dports/lang/mono/mono-5.10.1.57/external/api-snapshot/profiles/monodroid/Facades/
H A DSystem.Net.HttpListener.cs21 …System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.HttpListenerException))]
/dports/lang/mono/mono-5.10.1.57/external/api-snapshot/profiles/net_4_x/Facades/
H A DSystem.Net.HttpListener.cs21 …System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.HttpListenerException))]

123