Class PipelineSession

Owns all blocks independently of their visible cards or groups. UI callers serialize edits. Reload, deletion and shutdown use the same asynchronous resource-release path.

Inheritance
PipelineSession
Implements
Namespace: MOSAIC.Services
Assembly: MOSAIC.dll
Syntax
public sealed class PipelineSession : IAsyncDisposable

Fields

_blocks

Declaration
private readonly HashSet<BaseBlock> _blocks
Field Value
Type Description
HashSet<BaseBlock>

Properties

Blocks

Declaration
public IReadOnlyCollection<BaseBlock> Blocks { get; }
Property Value
Type Description
IReadOnlyCollection<BaseBlock>

Methods

Add(BaseBlock)

Declaration
public void Add(BaseBlock block)
Parameters
Type Name Description
BaseBlock block

ClearAsync()

Declaration
public Task ClearAsync()
Returns
Type Description
Task

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

Declaration
public ValueTask DisposeAsync()
Returns
Type Description
ValueTask

A task that represents the asynchronous dispose operation.

DisposeBlockAsync(BaseBlock)

Declaration
private static Task DisposeBlockAsync(BaseBlock block)
Parameters
Type Name Description
BaseBlock block
Returns
Type Description
Task

RemoveAsync(IEnumerable<BaseBlock>)

Declaration
public Task RemoveAsync(IEnumerable<BaseBlock> blocks)
Parameters
Type Name Description
IEnumerable<BaseBlock> blocks
Returns
Type Description
Task

ReplaceAsync(IReadOnlyDictionary<string, JsonModel>, IBlockFactory)

Releases old sockets and recordings before constructing their replacements.

Declaration
public Task<BlockGraphBuilder.BuiltGraph> ReplaceAsync(IReadOnlyDictionary<string, JsonModel> models, IBlockFactory factory)
Parameters
Type Name Description
IReadOnlyDictionary<string, JsonModel> models
IBlockFactory factory
Returns
Type Description
Task<BlockGraphBuilder.BuiltGraph>

Implements

IAsyncDisposable

Search documentation

Start typing to search the documentation.