C# 클래스 PBCaGw.Handlers.CommandHandler

The command handler base class. To run an handler use the ExecuteRequestHandler or the ExecuteResponseHandler static functions.
파일 보기 프로젝트 열기: ISISComputingGroup/EPICS-epicssharp

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

DoRequest() 공개 추상적인 메소드

public abstract DoRequest ( DataPacket packet, Workers chain, DataPacketDelegate sendData ) : void
packet DataPacket
chain Workers
sendData DataPacketDelegate
리턴 void

DoResponse() 공개 추상적인 메소드

public abstract DoResponse ( DataPacket packet, Workers chain, DataPacketDelegate sendData ) : void
packet DataPacket
chain Workers
sendData DataPacketDelegate
리턴 void

ExecuteRequestHandler() 공개 정적인 메소드

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
리턴 void

ExecuteResponseHandler() 공개 정적인 메소드

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
리턴 void