Table of Contents

Class CompositionRegistry<TNode, TLink>

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

Default ICompositionRegistry implementation.

public class CompositionRegistry<TNode, TLink> : ICompositionRegistry where TNode : ICompositionModelNode, new() where TLink : ICompositionModelLink, new()

Type Parameters

TNode

Node type.

TLink

Link type.

Inheritance
CompositionRegistry<TNode, TLink>
Implements
Inherited Members
Extension Methods

Constructors

CompositionRegistry(Func<ICompositionModelBehavior<TNode, TLink>>)

Initializes a new instance of the CompositionRegistry<TNode, TLink>.

public CompositionRegistry(Func<ICompositionModelBehavior<TNode, TLink>> createBehavior)

Parameters

createBehavior Func<ICompositionModelBehavior<TNode, TLink>>

ICompositionModelBehavior<TNode, TLink>

Properties

DiagramElements

List of elements.

public INotifyList<DiagramElement> DiagramElements { get; }

Property Value

INotifyList<DiagramElement>

Methods

CreateComposition()

Create CompositionDiagramElement instance.

public CompositionDiagramElement CreateComposition()

Returns

CompositionDiagramElement

CompositionDiagramElement

Deserialize(CompositionDiagramElement, SettingsStorage, Func<SecureString>)

To deserialize the composite element.

public bool Deserialize(CompositionDiagramElement element, SettingsStorage container, Func<SecureString> getPassword)

Parameters

element CompositionDiagramElement

CompositionDiagramElement

container SettingsStorage
getPassword Func<SecureString>

Get password handler.

Returns

bool

Is encryption used.

Serialize(CompositionDiagramElement, SettingsStorage, bool, SecureString)

To serialize the composite element.

public void Serialize(CompositionDiagramElement element, SettingsStorage container, bool includeCoordinates, SecureString password)

Parameters

element CompositionDiagramElement

CompositionDiagramElement

container SettingsStorage
includeCoordinates bool

Include coordinates.

password SecureString

Password.