CompositionHelper
Helpers.
Methods
AddDiagramElement``1()
Add DiagramElement type.
BreakOnly(IEnumerable<DiagramSocket>) : IEnumerable<DiagramSocket>
Filter the specified by the IsBreak.
- sockets
- All sockets.
Returns: Break sockets.
ContinueAndWaitOnNext(DebuggerSyncObject)
To continue and stop at the next element.
- syncObject
- DebuggerSyncObject
FillDefault(ICompositionRegistry)
Fill DiagramElements by GetDiagramElements.
- registry
- ICompositionRegistry.
FindAllElements(CompositionDiagramElement) : IEnumerable<T>
Find all non CompositionDiagramElement elements.
FindAllElements``1(CompositionDiagramElement)
Find all non CompositionDiagramElement elements.
FindById(IEnumerable<DiagramSocket>, string) : DiagramSocket
- sockets
- id
GetAllElementsSockets(CompositionDiagramElement) : IEnumerable<DiagramSocket>
Get all sockets from the specified CompositionDiagramElement.
- composition
- CompositionDiagramElement
Returns: All sockets.
GetAllSockets(DiagramElement) : IEnumerable<DiagramSocket>
Get all sockets from the specified DiagramElement.
- element
- DiagramElement
Returns: All sockets.
GetDiagramElements() : IEnumerable<DiagramElement>
Get all diagram elements.
Returns: All diagram elements.
GetFromSocket``2(ICompositionModelLink, ICompositionModelBehavior<T, T>)
Get From socket for the specified link.
- link
- ICompositionModelLink
- behavior
- ICompositionModelBehavior
Returns: DiagramSocket
GetToSocket``2(ICompositionModelLink, ICompositionModelBehavior<T, T>)
Get To socket for the specified link.
- link
- ICompositionModelLink
- behavior
- ICompositionModelBehavior
Returns: DiagramSocket
HasCode(CompositionDiagramElement) : bool
Check the specified CompositionDiagramElement contains code element.
- composition
- CompositionDiagramElement
Returns: Check result.
HasCode(DiagramStrategy) : bool
Check the specified DiagramStrategy contains code element.
- strategy
- DiagramStrategy
Returns: Check result.
IsEditable(DiagramSocketType) : bool
- type
IsFinal(DiagramSocketValue) : bool?
Determine the specified value is final.
- value
- DiagramSocketValue
Returns: Operation result.
SelectedOnly(IEnumerable<DiagramSocket>) : IEnumerable<DiagramSocket>
Filter the specified by the IsSelected.
- sockets
- All sockets.
Returns: Selected sockets.
ToDiagramType(Type) : DiagramSocketType
Find the DiagramSocketType by the specified Type.
- type
- Type.
Returns: DiagramSocketType
TryGetElementById(CompositionDiagramElement, Guid, DiagramElement) : bool
Find the element by the specified identifier.
- composition
- CompositionDiagramElement
- elementId
- DiagramElement identifier.
- element
- Found DiagramElement.
Returns: Operation result.
TryGetSocketById(CompositionDiagramElement, Guid, string, DiagramSocket) : bool
Find the socket by the specified identifiers.
- composition
- CompositionDiagramElement
- elementId
- DiagramElement identifier.
- socketId
- DiagramSocket identifier.
- socket
- Found socket.
Returns: Operation result.