C# Class PBCaGw.Handlers.CommandHandler

The command handler base class. To run an handler use the ExecuteRequestHandler or the ExecuteResponseHandler static functions.
Afficher le fichier Open project: ISISComputingGroup/EPICS-epicssharp

Méthodes publiques

Méthode Description
DoRequest ( DataPacket packet, Workers chain, DataPacketDelegate sendData ) : void
DoResponse ( DataPacket packet, Workers chain, DataPacketDelegate sendData ) : void
ExecuteRequestHandler ( UInt16 command, DataPacket packet, PBCaGw chain, DataPacketDelegate send ) : void

Used to answer to a request

ExecuteResponseHandler ( UInt16 command, DataPacket packet, PBCaGw chain, DataPacketDelegate send ) : void

Used to answer to a response

Private Methods

Méthode Description
CommandHandler ( ) : System

Setup the handles in the array for quick access.

GetCommandName ( UInt16 commandId ) : string

Returns the command name given a command id.

IsAllowed ( UInt16 command ) : bool

Method Details

DoRequest() public abstract méthode

public abstract DoRequest ( DataPacket packet, Workers chain, DataPacketDelegate sendData ) : void
packet DataPacket
chain Workers
sendData DataPacketDelegate
Résultat void

DoResponse() public abstract méthode

public abstract DoResponse ( DataPacket packet, Workers chain, DataPacketDelegate sendData ) : void
packet DataPacket
chain Workers
sendData DataPacketDelegate
Résultat void

ExecuteRequestHandler() public static méthode

Used to answer to a request
public static ExecuteRequestHandler ( UInt16 command, DataPacket packet, PBCaGw chain, DataPacketDelegate send ) : void
command System.UInt16
packet DataPacket
chain PBCaGw
send DataPacketDelegate
Résultat void

ExecuteResponseHandler() public static méthode

Used to answer to a response
public static ExecuteResponseHandler ( UInt16 command, DataPacket packet, PBCaGw chain, DataPacketDelegate send ) : void
command System.UInt16
packet DataPacket
chain PBCaGw
send DataPacketDelegate
Résultat void