DiagramDebugger

StockSharp.Diagram

图表复合元素的调试器 。

继承自: Disposable

实现: IDebugger, IPersistable, IDisposable

构造函数

DiagramDebugger
public DiagramDebugger(CompositionDiagramElement composition)
diagramDebugger = DiagramDebugger(composition)

初始化了 & ##DiagramDebugger+#的新实例.

composition
复合元素.

属性

Breakpoints
public IEnumerable<DiagramSocketBreakpoint> Breakpoints { get; }
value = diagramDebugger.Breakpoints

断点(sockets,将停止数据传输).

CanStepInto
public bool CanStepInto { get; }
value = diagramDebugger.CanStepInto
CanStepOut
public bool CanStepOut { get; }
value = diagramDebugger.CanStepOut
Composition
public CompositionDiagramElement Composition { get; private set; }
value = diagramDebugger.Composition
diagramDebugger.Composition = value

复合元素.

ExecBlock
public object ExecBlock { get; }
value = diagramDebugger.ExecBlock
HoverBlock
public object HoverBlock { get; }
value = diagramDebugger.HoverBlock
IsDisabled
public bool IsDisabled { get; set; }
value = diagramDebugger.IsDisabled
diagramDebugger.IsDisabled = value

如果调试器被使用。否则,

IsWaitingOnError
public bool IsWaitingOnError { get; }
value = diagramDebugger.IsWaitingOnError
IsWaitingOnInput
public bool IsWaitingOnInput { get; }
value = diagramDebugger.IsWaitingOnInput

,如果调试器在图元素的输入时被停止。否则,

IsWaitingOnOutput
public bool IsWaitingOnOutput { get; }
value = diagramDebugger.IsWaitingOnOutput

,如果调试器在图元素退出时被停止。否则,

Root
public CompositionDiagramElement Root { get; }
value = diagramDebugger.Root

根图元素.

方法

AddBreak
public bool AddBreak(DiagramSocket socket)
result = diagramDebugger.AddBreak(socket)

用于在套接字中添加一个断点 。

socket
袜子。

返回值: 操作结果。

Continue
public void Continue()
diagramDebugger.Continue()

继续

DisposeManaged
protected override void DisposeManaged()
diagramDebugger.DisposeManaged()

释放资源。

IsBreak
public bool IsBreak(DiagramSocket socket)
result = diagramDebugger.IsBreak(socket)

套接字是否为断点 。

socket
袜子。

返回值: 如果插座是断点,否则,

Load
public void Load(SettingsStorage storage)
diagramDebugger.Load(storage)

装入设置 。

storage
设置存储 。
RemoveAllBreaks
public void RemoveAllBreaks()
diagramDebugger.RemoveAllBreaks()

从方案中删除所有断点 。

RemoveBreak
public bool RemoveBreak(DiagramSocket socket)
result = diagramDebugger.RemoveBreak(socket)

将断点从套接字中去除 。

socket
袜子。

返回值: 操作结果。

Save
public void Save(SettingsStorage storage)
diagramDebugger.Save(storage)

保存设置 。

storage
设置存储 。
StepInto
public void StepInto()
diagramDebugger.StepInto()
StepNext
public void StepNext()
diagramDebugger.StepNext()
StepOut
public void StepOut()
diagramDebugger.StepOut()

出来

TryGetBreakpoint
public bool TryGetBreakpoint(DiagramSocket socket, DiagramSocketBreakpoint breakpoint)
result = diagramDebugger.TryGetBreakpoint(socket, breakpoint)

以接上插座取出断点.

socket
DiagramSocket
breakpoint
DiagramSocketBreakpoint

返回值: 操作结果。

事件

Added
public event Action<DiagramSocket> Added
diagramDebugger.Added += handler

添加断点事件 。

Break
public event Action<DiagramSocket> Break
diagramDebugger.Break += handler

断点站站站点事件.

Changed
public event Action Changed
diagramDebugger.Changed += handler

协会改变了。

CompositionChanged
public event Action<CompositionDiagramElement> CompositionChanged
diagramDebugger.CompositionChanged += handler

图表复合元素变化事件。

Continued
public event Action Continued
diagramDebugger.Continued += handler
Error
public event Action<DiagramElement> Error
diagramDebugger.Error += handler

错误时停止的事件 。

Removed
public event Action<DiagramSocket> Removed
diagramDebugger.Removed += handler

删除断点事件 。