WindowContentSessionOptions class

Namespace Runic.Application.Views · Runic.Application 0.7.0-preview.5

public sealed class WindowContentSessionOptions

Configures a WindowContentSession.

Constructors

WindowContentSessionOptions

public WindowContentSessionOptions()

No documentation.

Properties

CreateId

public Func<string>? CreateId { get; init; }

Creates the ids of content references (route content{id}) and interaction requests. Each id must be unique within the session and contain only ASCII letters and digits. Defaults to random GUIDs; tests pass a sequence for stable routes.

LoggerFactory

public ILoggerFactory? LoggerFactory { get; init; }

Creates the loggers of this window's Bridges, operations and mounts.

ModelContext

public IRunicModelContext? ModelContext { get; init; }

An application-owned context, such as the scoped DI context, that the window graph must share. See the WindowContentSession constructor.

OperationShutdown

public CancellationToken OperationShutdown { get; init; }

Cancels window-owned operations when signalled.

RootModel

public object? RootModel { get; init; }

The window's root ViewModel, if any.

TimeProvider

public TimeProvider? TimeProvider { get; init; }

The clock of interaction deadlines and close timeouts. Defaults to TimeProvider.System; tests pass a fake clock.

ViewLocator

public IRunicViewLocator? ViewLocator { get; init; }

Resolves .NET Views for presented content.