Table of Contents

Class DebuggerSyncObject

Namespace
StockSharp.Diagram
Assembly
StockSharp.Diagram.Core.dll

The synchronization object for the composite elements debugger.

public class DebuggerSyncObject : ViewModelBase
Inheritance
DebuggerSyncObject
Extension Methods

Constructors

DebuggerSyncObject(CompositionDiagramElement, Func<DiagramSocket, bool>, Action<DebuggerSyncObject>, Action<DebuggerSyncObject>)

Initializes a new instance of the DebuggerSyncObject.

public DebuggerSyncObject(CompositionDiagramElement rootElement, Func<DiagramSocket, bool> isBreak, Action<DebuggerSyncObject> breakAction, Action<DebuggerSyncObject> errorAction)

Parameters

rootElement CompositionDiagramElement

The root diagram element.

isBreak Func<DiagramSocket, bool>

The handler that returns a stop flag for the socket.

breakAction Action<DebuggerSyncObject>

The action with the element at stop.

errorAction Action<DebuggerSyncObject>

The action with the element at error.

Properties

CurrentElement

The current element.

public DiagramElement CurrentElement { get; }

Property Value

DiagramElement

CurrentError

The current error.

public Exception CurrentError { get; }

Property Value

Exception

CurrentSocket

The current socket.

public DiagramSocket CurrentSocket { get; }

Property Value

DiagramSocket

GuiWrapper

Gui wrapper for property binding.

public INotifyPropertyChanged GuiWrapper { get; }

Property Value

INotifyPropertyChanged

IsWaitingOnInput

true, if the debugger is stopped at the entry of the diagram element. Otherwise, false.

public bool IsWaitingOnInput { get; }

Property Value

bool

IsWaitingOnOutput

true, if the debugger is stopped at the exit of the diagram element. Otherwise, false.

public bool IsWaitingOnOutput { get; }

Property Value

bool

Methods

Continue()

Continue.

public void Continue()

DisposeManaged()

protected override void DisposeManaged()

SetWaitOnNext()

To set the flag for waiting at the entry of the next diagram element.

public void SetWaitOnNext()

TryWait(DiagramSocket, bool)

Try wait on socket.

public bool TryWait(DiagramSocket socket, bool isOnInput)

Parameters

socket DiagramSocket

DiagramSocket

isOnInput bool

Is wait on input.

Returns

bool

Operation result.

TryWaitOnError(DiagramElement, Exception)

Try wait on error.

public bool TryWaitOnError(DiagramElement element, Exception error)

Parameters

element DiagramElement

DiagramElement

error Exception

Error.

Returns

bool

Operation result.