DebuggerSyncObject
StockSharp.Diagram
The synchronization object for the composite elements debugger.
Inherits: ViewModelBase
Constructors
DebuggerSyncObject
public DebuggerSyncObject(DiagramDebugger debugger, CompositionDiagramElement rootElement, Func<DiagramSocket, bool> isBreak, Action<DebuggerSyncObject> breakAction, Action<DebuggerSyncObject> errorAction)
debuggerSyncObject = DebuggerSyncObject(debugger, rootElement, isBreak, breakAction, errorAction)
Initializes a new instance of the DebuggerSyncObject.
- debugger
- DiagramDebugger
- rootElement
- The root diagram element.
- isBreak
- The handler that returns a stop flag for the socket.
- breakAction
- The action with the element at stop.
- errorAction
- The action with the element at error.
Properties
CurrentElement
public DiagramElement CurrentElement { get; private set; }
value = debuggerSyncObject.CurrentElement
debuggerSyncObject.CurrentElement = value
The current element.
CurrentError
public Exception CurrentError { get; private set; }
value = debuggerSyncObject.CurrentError
debuggerSyncObject.CurrentError = value
The current error.
CurrentSocket
public DiagramSocket CurrentSocket { get; private set; }
value = debuggerSyncObject.CurrentSocket
debuggerSyncObject.CurrentSocket = value
The current socket.
GuiWrapper
public INotifyPropertyChanged GuiWrapper { get; }
value = debuggerSyncObject.GuiWrapper
Gui wrapper for property binding.
IsWaitingOnInput
public bool IsWaitingOnInput { get; private set; }
value = debuggerSyncObject.IsWaitingOnInput
debuggerSyncObject.IsWaitingOnInput = value
, if the debugger is stopped at the entry of the diagram element. Otherwise, .
IsWaitingOnOutput
public bool IsWaitingOnOutput { get; private set; }
value = debuggerSyncObject.IsWaitingOnOutput
debuggerSyncObject.IsWaitingOnOutput = value
, if the debugger is stopped at the exit of the diagram element. Otherwise, .
Methods
DisposeManaged
protected override void DisposeManaged()
debuggerSyncObject.DisposeManaged()
Release resources.
SetWaitOnNext
public void SetWaitOnNext()
debuggerSyncObject.SetWaitOnNext()
To set the flag for waiting at the entry of the next diagram element.
TryWait
public bool TryWait(DiagramSocket socket, bool isOnInput)
result = debuggerSyncObject.TryWait(socket, isOnInput)
Try wait on socket.
- socket
- DiagramSocket
- isOnInput
- Is wait on input.
Returns: Operation result.
TryWaitOnError
public bool TryWaitOnError(DiagramElement element, Exception error)
result = debuggerSyncObject.TryWaitOnError(element, error)
Try wait on error.
- element
- DiagramElement
- error
- Error.
Returns: Operation result.