Class CommandsHandler
- Namespace
- Coherence.Toolkit
- Assembly
- Coherence.Toolkit.dll
public class CommandsHandler
- Inheritance
-
CommandsHandler
Constructors
public CommandsHandler(ICoherenceSync sync, List<Binding> bindings, Logger logger)
Parameters
sync
ICoherenceSync
bindings
List<Binding>
logger
Logger
Properties
public Logger logger { get; }
Property Value
- Logger
Methods
public void AddBakedCommand(string name, string signatureAsString, GenericCommandRequestDelegate sendDelegate, GenericCommandRequestDelegate receiveDelegate, MessageTarget routing, Component receiver, bool hasSenderArg)
Parameters
name
string
signatureAsString
string
sendDelegate
GenericCommandRequestDelegate
receiveDelegate
GenericCommandRequestDelegate
routing
MessageTarget
receiver
Component
hasSenderArg
bool
public void HandleCommand(IEntityCommand command, MessageTarget target)
Parameters
command
IEntityCommand
target
MessageTarget
public void HandleGenericCommand(string commandGuid, MessageTarget target, byte[] data, SerializeEntityID[] entityIDs)
Parameters
commandGuid
string
target
MessageTarget
data
byte[]
entityIDs
SerializeEntityID[]
public bool SendCommand(Action method, MessageTarget target)
Parameters
method
Action
target
MessageTarget
Returns
- bool
public bool SendCommand(Type targetType, string methodName, MessageTarget target, bool sendToAllBindings, params object[] args)
Parameters
targetType
Type
methodName
string
target
MessageTarget
sendToAllBindings
bool
args
object[]
Returns
- bool
public bool SendCommand(Type targetType, string methodName, MessageTarget target, bool sendToAllBindings, params (Type, object)[] args)
Parameters
targetType
Type
methodName
string
target
MessageTarget
sendToAllBindings
bool
args
(Type, object)[]
Returns
- bool
public bool SendCommand<T>(Action<T> method, MessageTarget target, (Type, object)[] args)
Parameters
method
Action<T>
target
MessageTarget
args
(Type, object)[]
Returns
- bool
Type Parameters
T
public bool SendCommand<T1, T2>(Action<T1, T2> method, MessageTarget target, (Type, object)[] args)
Parameters
method
Action<T1, T2>
target
MessageTarget
args
(Type, object)[]
Returns
- bool
Type Parameters
T1
T2
public bool SendCommand<T1, T2, T3>(Action<T1, T2, T3> method, MessageTarget target, (Type, object)[] args)
Parameters
method
Action<T1, T2, T3>
target
MessageTarget
args
(Type, object)[]
Returns
- bool
Type Parameters
T1
T2
T3
public bool SendCommand<T1, T2, T3, T4>(Action<T1, T2, T3, T4> method, MessageTarget target, (Type, object)[] args)
Parameters
method
Action<T1, T2, T3, T4>
target
MessageTarget
args
(Type, object)[]
Returns
- bool
Type Parameters
T1
T2
T3
T4
public bool SendCommand<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5> method, MessageTarget target, (Type, object)[] args)
Parameters
method
Action<T1, T2, T3, T4, T5>
target
MessageTarget
args
(Type, object)[]
Returns
- bool
Type Parameters
T1
T2
T3
T4
T5
public bool SendCommand<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6> method, MessageTarget target, (Type, object)[] args)
Parameters
method
Action<T1, T2, T3, T4, T5, T6>
target
MessageTarget
args
(Type, object)[]
Returns
- bool
Type Parameters
T1
T2
T3
T4
T5
T6
public bool SendCommand<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7> method, MessageTarget target, (Type, object)[] args)
Parameters
method
Action<T1, T2, T3, T4, T5, T6, T7>
target
MessageTarget
args
(Type, object)[]
Returns
- bool
Type Parameters
T1
T2
T3
T4
T5
T6
T7
public bool SendCommand<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8> method, MessageTarget target, (Type, object)[] args)
Parameters
method
Action<T1, T2, T3, T4, T5, T6, T7, T8>
target
MessageTarget
args
(Type, object)[]
Returns
- bool
Type Parameters
T1
T2
T3
T4
T5
T6
T7
T8