Skip to main content

MLAPI.Transports.Tasks.SocketTask

A single socket task.

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Inherited Members#

Object.Equals(Object)

Object.Equals(Object, Object)

Object.GetHashCode()

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public class SocketTask

Properties#

Done#

Gets a done task.

Declaration#

public static SocketTask Done { get; }

Property Value#

TypeDescription
SocketTaskThe done.

Fault#

Gets a faulty task.

Declaration#

public static SocketTask Fault { get; }

Property Value#

TypeDescription
SocketTaskThe fault.

IsDone#

Gets or sets a value indicating whether this SocketTask is done.

Declaration#

public bool IsDone { get; set; }

Property Value#

TypeDescription
System.Booleantrue if is done; otherwise, false.

Message#

Gets or sets the message.

Declaration#

public string Message { get; set; }

Property Value#

TypeDescription
System.StringThe message.

SocketError#

Gets or sets the socket error.

Declaration#

public SocketError SocketError { get; set; }

Property Value#

TypeDescription
System.Net.Sockets.SocketErrorThe socket error.

State#

Gets or sets the state.

Declaration#

public object State { get; set; }

Property Value#

TypeDescription
System.ObjectThe state.

Success#

Gets or sets a value indicating whether this SocketTask is success.

Declaration#

public bool Success { get; set; }

Property Value#

TypeDescription
System.Booleantrue if success; otherwise, false.

TransportCode#

Gets or sets the transport code.

Declaration#

public int TransportCode { get; set; }

Property Value#

TypeDescription
System.Int32The transport code.

TransportException#

Gets or sets the transport exception.

Declaration#

public Exception TransportException { get; set; }

Property Value#

TypeDescription
System.ExceptionThe transport exception.

Working#

Gets a working task.

Declaration#

public static SocketTask Working { get; }

Property Value#

TypeDescription
SocketTaskThe working.

Methods#

AsTasks()#

Converts to a SocketTasks.

Declaration#

public SocketTasks AsTasks()

Returns#

TypeDescription
SocketTasksThe tasks.