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>>
Properties
DiagramElements
List of elements.
public INotifyList<DiagramElement> DiagramElements { get; }
Property Value
- INotifyList<DiagramElement>
Methods
CreateComposition()
Create CompositionDiagramElement instance.
public CompositionDiagramElement CreateComposition()
Returns
Deserialize(CompositionDiagramElement, SettingsStorage, Func<SecureString>)
To deserialize the composite element.
public void Deserialize(CompositionDiagramElement element, SettingsStorage container, Func<SecureString> getPassword)
Parameters
element
CompositionDiagramElementcontainer
SettingsStoragegetPassword
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
CompositionDiagramElementcontainer
SettingsStorageschemeType
SchemeTypesScheme type.
includeCoordinates
boolInclude coordinates.
password
SecureStringPassword.