ICompositionRegistry
StockSharp.Diagram
El almacenamiento de elementos compuestos.
Propiedades
DiagramElements
public INotifyList<DiagramElement> DiagramElements { get; }
value = iCompositionRegistry.DiagramElements
Lista de elementos.
Métodos
CreateComposition
public CompositionDiagramElement CreateComposition()
result = iCompositionRegistry.CreateComposition()
Crear CompositionDiagramElement instance.
Devuelve: CompositionDiagramElement
DeserializeAsync
public ValueTask<bool> DeserializeAsync(CompositionDiagramElement element, SettingsStorage storage, Func<SecureString> getPassword, CancellationToken cancellationToken)
result = iCompositionRegistry.DeserializeAsync(element, storage, getPassword, cancellationToken)
To deserialize the composite element.
- element
- CompositionDiagramElement
- storage
- Settings storage.
- getPassword
- Get password handler.
- cancellationToken
- CancellationToken
Devuelve: Is encryption used.
LoadNotLoadedElementsAsync
public ValueTask LoadNotLoadedElementsAsync(CompositionDiagramElement composition, CancellationToken cancellationToken)
result = iCompositionRegistry.LoadNotLoadedElementsAsync(composition, cancellationToken)
Load the elements of the composition that waited for their type. A composition deserialized before a type was added to DiagramElements keeps an empty node in place of each element of that type; the node gets its element here, in the nested compositions as well. An element that cannot be loaded keeps waiting, and the error is thrown.
- composition
- CompositionDiagramElement
- cancellationToken
- CancellationToken
Devuelve: ValueTask
SerializeAsync
public ValueTask SerializeAsync(CompositionDiagramElement element, SettingsStorage storage, bool includeCoordinates, SecureString password, CancellationToken cancellationToken)
result = iCompositionRegistry.SerializeAsync(element, storage, includeCoordinates, password, cancellationToken)
To serialize the composite element.
- element
- CompositionDiagramElement
- storage
- Settings storage.
- includeCoordinates
- Include coordinates.
- password
- Password.
- cancellationToken
- CancellationToken
Devuelve: ValueTask