Table of Contents

Class CommandsHandler

Namespace
Coherence.Toolkit
Assembly
Coherence.Toolkit.dll
public class CommandsHandler
Inheritance
CommandsHandler

Constructors

CommandsHandler(ICoherenceSync, List<Binding>, Logger)

public CommandsHandler(ICoherenceSync sync, List<Binding> bindings, Logger logger)

Parameters

sync ICoherenceSync
bindings List<Binding>
logger Logger

Properties

logger

public Logger logger { get; }

Property Value

Logger

Methods

AddBakedCommand(string, string, GenericCommandRequestDelegate, GenericCommandRequestDelegate, MessageTarget, Component, bool)

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

HandleCommand(IEntityCommand, MessageTarget)

public void HandleCommand(IEntityCommand command, MessageTarget target)

Parameters

command IEntityCommand
target MessageTarget

HandleGenericCommand(string, MessageTarget, byte[], Entity[])

public void HandleGenericCommand(string commandGuid, MessageTarget target, byte[] data, Entity[] entityIDs)

Parameters

commandGuid string
target MessageTarget
data byte[]
entityIDs Entity[]

SendCommand(Action, MessageTarget)

public bool SendCommand(Action method, MessageTarget target)

Parameters

method Action
target MessageTarget

Returns

bool

SendCommand(Type, string, MessageTarget, bool, params object[])

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

SendCommand(Type, string, MessageTarget, bool, params (Type, object)[])

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

SendCommand<T>(Action<T>, MessageTarget, (Type, object)[])

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

SendCommand<T1, T2>(Action<T1, T2>, MessageTarget, (Type, object)[])

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

SendCommand<T1, T2, T3>(Action<T1, T2, T3>, MessageTarget, (Type, object)[])

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

SendCommand<T1, T2, T3, T4>(Action<T1, T2, T3, T4>, MessageTarget, (Type, object)[])

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

SendCommand<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5>, MessageTarget, (Type, object)[])

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

SendCommand<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6>, MessageTarget, (Type, object)[])

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

SendCommand<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7>, MessageTarget, (Type, object)[])

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

SendCommand<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8>, MessageTarget, (Type, object)[])

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