Table of Contents

Class CommandAttribute

Namespace
Coherence.Toolkit
Assembly
Coherence.Toolkit.dll

Automatically add this method to the list of synced bindings in CoherenceSync. This makes the method available as a target for SendCommand.

Methods without this attribute can still be marked as viable targets for SendCommand by selecting them manually in the bindings configuration window.

[AttributeUsage(AttributeTargets.Method)]
public sealed class CommandAttribute : Attribute
Inheritance
CommandAttribute

Constructors

CommandAttribute()

public CommandAttribute()

CommandAttribute(string, params Type[])

public CommandAttribute(string oldName = null, params Type[] oldParams)

Parameters

oldName string
oldParams Type[]

Fields

defaultRouting

Sets the default routing on the binding (it can still be changed in the bindings configuration window.)

public MessageTarget defaultRouting

Field Value

MessageTarget

Properties

OldName

Used for migration purposes. Method bindings whose name match OldName will be updated to the new target member.

public string OldName { get; }

Property Value

string

OldParams

Used for migration purposes. Method bindings whose parameters match OldParams will be updated to the new target member.

public Type[] OldParams { get; }

Property Value

Type[]