C# Class OpenNos.Core.Networking.Communication.Scs.Communication.Channels.CommunicationChannelBase

This class provides base functionality for all communication channel Classs.
Inheritance: ICommunicationChannel
Afficher le fichier Open project: OpenNos/OpenNos

Méthodes publiques

Méthode Description
ClearLowPriorityQueue ( ) : System.Threading.Tasks.Task
Disconnect ( ) : void

Disconnects from remote application and closes this channel.

SendMessage ( IScsMessage message, byte priority ) : void

Sends a message to the remote application.

Start ( ) : void

Starts the communication with remote application.

Méthodes protégées

Méthode Description
CommunicationChannelBase ( ) : System

Constructor.

OnDisconnected ( ) : void

Raises Disconnected event.

OnMessageReceived ( IScsMessage message, System.DateTime receivedTimestamp ) : void

Raises MessageReceived event.

OnMessageSent ( IScsMessage message ) : void

Raises MessageSent event.

SendMessagepublic ( IScsMessage message, byte priority ) : void

Sends a message to the remote application. This method is overrided by derived Classs to really send to message.

Startpublic ( ) : void

Starts the communication with remote application really.

Method Details

ClearLowPriorityQueue() public abstract méthode

public abstract ClearLowPriorityQueue ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

CommunicationChannelBase() protected méthode

Constructor.
protected CommunicationChannelBase ( ) : System
Résultat System

Disconnect() public abstract méthode

Disconnects from remote application and closes this channel.
public abstract Disconnect ( ) : void
Résultat void

OnDisconnected() protected méthode

Raises Disconnected event.
protected OnDisconnected ( ) : void
Résultat void

OnMessageReceived() protected méthode

Raises MessageReceived event.
protected OnMessageReceived ( IScsMessage message, System.DateTime receivedTimestamp ) : void
message IScsMessage Received message
receivedTimestamp System.DateTime
Résultat void

OnMessageSent() protected méthode

Raises MessageSent event.
protected OnMessageSent ( IScsMessage message ) : void
message IScsMessage Received message
Résultat void

SendMessage() public méthode

Sends a message to the remote application.
/// Throws ArgumentNullException if message is null ///
public SendMessage ( IScsMessage message, byte priority ) : void
message IScsMessage Message to be sent
priority byte
Résultat void

SendMessagepublic() protected abstract méthode

Sends a message to the remote application. This method is overrided by derived Classs to really send to message.
protected abstract SendMessagepublic ( IScsMessage message, byte priority ) : void
message IScsMessage Message to be sent
priority byte
Résultat void

Start() public méthode

Starts the communication with remote application.
public Start ( ) : void
Résultat void

Startpublic() protected abstract méthode

Starts the communication with remote application really.
protected abstract Startpublic ( ) : void
Résultat void