Docs · API reference · Verso.Abstractions
IOutputChannelHost Interface#
Session-scoped owner of every open IOutputChannel. Reached from
OutputChannels, where null means the host cannot reach a
rendered view and a caller should produce static output instead.
public interface IOutputChannelHost
Methods#
Find(string) Method#
Finds an open channel by id, or null if there is none by that id.
Verso.Abstractions.IOutputChannel? Find(string channelId);
Parameters#
channelId System.String
Returns#
ForCell(Guid) Method#
Every channel currently open for a cell.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.IOutputChannel> ForCell(System.Guid cellId);
Parameters#
cellId System.Guid
Returns#
System.Collections.Generic.IReadOnlyList<IOutputChannel>
OpenAsync(Guid, CancellationToken) Method#
Opens a channel for an output the caller is about to write. The channel is usable immediately; messages posted before the view mounts and reports itself ready are queued and delivered in order once it does.
System.Threading.Tasks.Task<Verso.Abstractions.IOutputChannel> OpenAsync(System.Guid cellId, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
Parameters#
cellId System.Guid
ct System.Threading.CancellationToken