Table of Contents

Class CompositionHelper

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

Helpers.

public static class CompositionHelper
Inheritance
CompositionHelper
Inherited Members

Methods

AddDiagramElement(Type)

Add DiagramElement type.

public static void AddDiagramElement(Type elemType)

Parameters

elemType Type

DiagramElement type.

AddDiagramElement<T>()

Add DiagramElement type.

public static void AddDiagramElement<T>() where T : DiagramElement

Type Parameters

T

DiagramElement type.

ContinueAndWaitOnNext(DebuggerSyncObject)

To continue and stop at the next element.

public static void ContinueAndWaitOnNext(this DebuggerSyncObject syncObject)

Parameters

syncObject DebuggerSyncObject

DebuggerSyncObject

ConvertToIIndicatorValue(IIndicator, object)

Convert input value to IIndicatorValue.

public static IIndicatorValue ConvertToIIndicatorValue(this IIndicator indicator, object inputValue)

Parameters

indicator IIndicator

Indicator.

inputValue object

Input value.

Returns

IIndicatorValue

IIndicatorValue.

FillDefault(ICompositionRegistry)

public static void FillDefault(this ICompositionRegistry registry)

Parameters

registry ICompositionRegistry

ICompositionRegistry.

FindById(IEnumerable<DiagramSocket>, string)

public static DiagramSocket FindById(this IEnumerable<DiagramSocket> sockets, string id)

Parameters

sockets IEnumerable<DiagramSocket>
id string

Returns

DiagramSocket

GetDiagramElements()

Get all diagram elements.

public static IEnumerable<DiagramElement> GetDiagramElements()

Returns

IEnumerable<DiagramElement>

All diagram elements.

Get From socket for the specified link.

public static DiagramSocket GetFromSocket<TNode, TLink>(this ICompositionModelLink link, ICompositionModelBehavior<TNode, TLink> behavior) where TNode : ICompositionModelNode where TLink : ICompositionModelLink

Parameters

link ICompositionModelLink

ICompositionModelLink

behavior ICompositionModelBehavior<TNode, TLink>

ICompositionModelBehavior<TNode, TLink>

Returns

DiagramSocket

DiagramSocket

Type Parameters

TNode
TLink

Get To socket for the specified link.

public static DiagramSocket GetToSocket<TNode, TLink>(this ICompositionModelLink link, ICompositionModelBehavior<TNode, TLink> behavior) where TNode : ICompositionModelNode where TLink : ICompositionModelLink

Parameters

link ICompositionModelLink

ICompositionModelLink

behavior ICompositionModelBehavior<TNode, TLink>

ICompositionModelBehavior<TNode, TLink>

Returns

DiagramSocket

DiagramSocket

Type Parameters

TNode
TLink

HasCode(CompositionDiagramElement)

Check the specified CompositionDiagramElement contains code element.

public static bool HasCode(this CompositionDiagramElement composition)

Parameters

composition CompositionDiagramElement

CompositionDiagramElement

Returns

bool

Check result.

HasCode(DiagramStrategy)

Check the specified DiagramStrategy contains code element.

public static bool HasCode(this DiagramStrategy strategy)

Parameters

strategy DiagramStrategy

DiagramStrategy

Returns

bool

Check result.

IsBrowsable(SchemeTypes)

Determine the specified type is browsable.

public static bool IsBrowsable(this SchemeTypes type)

Parameters

type SchemeTypes

Scheme type.

Returns

bool

Check result.

IsEditable(DiagramSocketType)

public static bool IsEditable(this DiagramSocketType type)

Parameters

type DiagramSocketType

Returns

bool