Table of Contents

Interface IStudioCommandService

Namespace
StockSharp.Studio.Core.Commands
Assembly
StockSharp.Studio.Core.dll
public interface IStudioCommandService : IDisposable
Inherited Members
Extension Methods

Properties

GlobalScope

IStudioCommandScope GlobalScope { get; }

Property Value

IStudioCommandScope

Methods

Bind(object, IStudioCommandScope)

void Bind(object sender, IStudioCommandScope scope)

Parameters

sender object
scope IStudioCommandScope

CanProcess(object, IStudioCommand)

bool CanProcess(object sender, IStudioCommand command)

Parameters

sender object
command IStudioCommand

Returns

bool

Process(object, IStudioCommand, object[], bool)

void Process(object sender, IStudioCommand command, object[] targets, bool isSyncProcess)

Parameters

sender object
command IStudioCommand
targets object[]
isSyncProcess bool

Register<TCommand>(object, bool, Action<object, TCommand>, Func<TCommand, bool>)

void Register<TCommand>(object listener, bool guiAsync, Action<object, TCommand> handler, Func<TCommand, bool> canExecute = null) where TCommand : IStudioCommand

Parameters

listener object
guiAsync bool
handler Action<object, TCommand>
canExecute Func<TCommand, bool>

Type Parameters

TCommand

UnBind(object)

void UnBind(object sender)

Parameters

sender object

UnRegister<TCommand>(object)

void UnRegister<TCommand>(object listener) where TCommand : IStudioCommand

Parameters

listener object

Type Parameters

TCommand