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 void Deserialize(CompositionDiagramElement element, SettingsStorage container, Func<SecureString> getPassword)

Parameters

element CompositionDiagramElement

CompositionDiagramElement

container SettingsStorage
getPassword Func<SecureString>

Get password handler.

Serialize(CompositionDiagramElement, SettingsStorage, SchemeTypes, bool, SecureString)

To serialize the composite element.

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

Parameters

element CompositionDiagramElement

CompositionDiagramElement

container SettingsStorage
schemeType SchemeTypes

Scheme type.

includeCoordinates bool

Include coordinates.

password SecureString

Password.