Class SocketClosedEventArgs
Arguments for Disconnected event.
Inheritance
System.Object
System.EventArgs
SocketClosedEventArgs
Inherited Members
System.EventArgs.Empty
Namespace: TehGM.Wolfringo.Socket
Assembly: Wolfringo.Core.dll
Syntax
[Serializable]
public class SocketClosedEventArgs : EventArgs
Constructors
| Improve this Doc View SourceSocketClosedEventArgs(WebSocketCloseStatus, String)
Creates new event args instance.
Declaration
public SocketClosedEventArgs(WebSocketCloseStatus closeStatus, string closeMessage)
Parameters
Type | Name | Description |
---|---|---|
System.Net.WebSockets.WebSocketCloseStatus | closeStatus | Indicates the reason why the remote endpoint initiated the close handshake. |
System.String | closeMessage | The optional description that describes why the close handshake has been initiated by the remote endpoint. |
SocketClosedEventArgs(WebSocketCloseStatus, String, Exception)
Creates new event args instance.
Declaration
public SocketClosedEventArgs(WebSocketCloseStatus closeStatus, string closeMessage, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Net.WebSockets.WebSocketCloseStatus | closeStatus | Indicates the reason why the remote endpoint initiated the close handshake. |
System.String | closeMessage | The optional description that describes why the close handshake has been initiated by the remote endpoint. |
System.Exception | exception | Exception that caused socket closing. |
Properties
| Improve this Doc View SourceCloseMessage
The optional description that describes why the close handshake has been initiated by the remote endpoint.
Declaration
public string CloseMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
CloseStatus
Indicates the reason why the remote endpoint initiated the close handshake.
Declaration
public WebSocketCloseStatus CloseStatus { get; }
Property Value
Type | Description |
---|---|
System.Net.WebSockets.WebSocketCloseStatus |
Exception
Exception that caused socket closing.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception |