This class contains functions to dispatch operations. The target function depends on the incoming operation code. All registered methods require the OperationAttribute and the signature public OperationResponse MyMethod(PeerBase peer, OperationRequest request, SendParameters sendParameters);
.
More...
Public Member Functions | |
OperationDispatcher (OperationMethodInfoCache operations, IOperationHandler operationHandler) | |
Initializes a new instance of the OperationDispatcher class. More... | |
bool | DispatchOperationRequest (PeerBase peer, OperationRequest operationRequest, SendParameters sendParameters, out OperationResponse returnValue) |
The dispatch operation request. More... | |
This class contains functions to dispatch operations. The target function depends on the incoming operation code. All registered methods require the OperationAttribute and the signature public OperationResponse MyMethod(PeerBase peer, OperationRequest request, SendParameters sendParameters);
.
|
inline |
Initializes a new instance of the OperationDispatcher class.
operations | The operations. |
operationHandler | The operation Handler. |
|
inline |
The dispatch operation request.
peer | The peer. |
operationRequest | The operation Request. |
sendParameters | The send parameters. |
returnValue | The return Value. |