Runic.Application.Views

Version 0.23.0, target framework net10.0. Read from the published package.

Runic.Application.Views

AcceptedWorkScope class

Owns accepted application tasks until their actual completion.

BridgeInteractionRouter class

Window-owned request/reply broker for typed interaction adapters.

BridgeRequest class

One Views protocol request and the identities its transport authenticated.

BridgeSnapshotBatch class

Defers notification-driven bridge snapshots for one model until the outermost scope ends.

BridgeSnapshotObservableExtensions class

Applies observable batches on Runic's bridge publication boundary.

IBridgeConnectionTransport interface

A transport that can push to one connection outside a request.

IBridgeRequestHandler interface

Handles the Views protocol requests of a window's connections; the window implements it.

IBridgeTransport interface

Carries the Views protocol between one window and the pages connected to it: the requests of each connection with their replies, and pushes to every connection.

IBridgeWindow interface

The lifetime contract shared by every Window host adapter, such as CsWebUiBridgeWindow<TViewModel> and DesktopBridgeWindow<TViewModel>.

IRunicApplicationLocale interface

The application's locale: the language that every Window shows unless it sets its own with IRunicWindowLocale, and that menu bars, status icons and notifications are built in.

IRunicCodec<T> interface

Implement this interface with public static methods to define an explicit bridge representation for a type the generated standard codec does not cover.

IRunicConnections interface

The page connections of the Window whose DI scope resolved the service, and the connection whose request runs now.

IRunicFileDropTarget interface

A Window's root ViewModel that receives the files the user drops onto the Window, with their real paths.

IRunicMenuCheckedSource interface

A Window's root ViewModel that supplies the check marks of the menu bar's check and radio items while its Window is the key window.

IRunicMenuCommandSource interface

A Window's root ViewModel that runs the commands of the application's menu bar while its Window is the key window.

IRunicPendingValidation interface

An object whose validation can be in progress, such as an asynchronous rule that asks a server whether a name is taken.

IRunicRowSource<TRow, TKey> interface

The rows of a RunicQueryCollection: an application's database table, HTTP API or in-memory list, read one range at a time.

IRunicSidePanel interface

A Window's side panel, which IRunicWindowPresentation.OpenSidePanelAsync opened: a page of the Window beside its page, on one edge by which the Window grew.

IRunicTextReferenceSource interface

An entry of validation that carries a text reference for the page to show in the window's language.

IRunicView interface

A .NET presentation object associated with a web component.

IRunicViewLifetime interface

Optional hooks for the period during which a view is presented.

IRunicViewLocator interface

Resolves a fresh .NET view for a presented ViewModel.

IRunicWebMountLifetime interface

Optional visual mount acknowledgement from a web component.

IRunicWindow interface

An application Window that any host can open.

IRunicWindowContext interface

The Window whose DI scope resolved the service, for a ViewModel that closes its own Window.

IRunicWindowHost interface

A host that opens application Windows: Runic Desktop (RunicDesktopHost) or CS-WebUI (RunicCsWebUiHost).

IRunicWindowLocale interface

The locale of the Window whose scope resolved this service: the language in which its pages show text references, such as ViewModel status text and validation messages (feature translation-text/1).

IRunicWindowOpeningObserver interface

Called when a Runic Desktop, CS-WebUI or RunicWindowTestHost.Create window opens, before its ViewModel is resolved.

IRunicWindowParameter<TParameter> interface

The parameter that RunicWindowHostExtensions.OpenWindowAsync or IRunicWindowService.OpenWindowAsync handed to the Window whose scope resolves it.

IRunicWindowPresentation interface

The Window whose DI scope resolved the service, as it appears on the desktop: a ViewModel brings it to the front, minimizes, hides or shows it, makes it full-screen, marks its document edited, switches it between light and dark, and reads whether it is active, minimized and visible.

IRunicWindowResult<TResult> interface

Completes the Window that the scope belongs to with a result, for a Window opened with IRunicWindowService.OpenForResultAsync.

IRunicWindowService interface

Opens Windows from ViewModels and application services, on the host that runs the application.

PageReference record

A window-local reference to a ViewModel presented as content.

RunicAliasAttribute class

Sets a stable JSON field or enum-case name without exposing CLR naming as protocol.

RunicAppendOnlyTextAttribute class

Publishes a read-only String property that grows at its end, such as a live log, as the text it appends instead of its whole value.

RunicApplicationLocaleChangedEventArgs class

The change that IRunicApplicationLocale.LocaleChanged reports.

RunicBlob class

Binary content that a ViewModel shows or offers to the page, such as an image, a thumbnail or a download (Views protocol 4, feature blobs/1).

RunicBlobDisposition enum

What the browser does with a RunicBlob when the page navigates to its URL.

RunicBridgeContractException class

Reports generated Bridges that were built against another Runic release than the running Runic.Application.Views (RUNICBRIDGE038).

RunicCloseDrain record

How long a Window stays visible after its close was decided, while its accepted work drains: its operations and awaited commands, and the AcceptedWorkScopes it drains (IRunicWindowContext.DrainOnClose).

RunicCodecAttribute class

Associates a contract type or member with an explicit AOT-safe bridge codec.

RunicCodecShapeAttribute class

Supplies the TypeScript representation and decoder expression for an explicit bridge codec.

RunicCollectionAttribute class

Publishes indexed changes for a collection whose items have a stable, unique key.

RunicCommandInputAttribute class

Declares the browser argument shape for a plain ICommand.

RunicCommandKeyAttribute class

Resolves a command's parameter from a wire key: the generated client sends the key, and the Bridge calls the named ViewModel method to get the parameter.

RunicCommandResultAttribute class

Opts a generated command contract into a non-default result cardinality.

RunicCommandResultCardinality enum

Controls how an observable ReactiveUI command result is retained.

RunicConnection record

One page connection of a Window: a browser tab, a WebView or a reloaded page, from its hello until it closes.

RunicConnectionEventArgs class

The connection that IRunicConnections.Connected or IRunicConnections.Disconnected reports.

RunicConnectionsExtensions class

Observable forms of IRunicConnections, for ReactiveUI and other IObservable consumers.

RunicConnectionState<T> class

A value per connection of a Window, such as a selection, a cursor or a draft that each page keeps for itself, removed when its connection disconnects.

RunicDevelopmentOnly class

Whether development-only views and members (RunicDevelopmentOnlyAttribute) are in this application.

RunicDevelopmentOnlyAttribute class

Marks a ViewModel, or one of its properties or commands, as a development tool, such as a mock-control panel or a diagnostics member: a trimmed or NativeAOT publish leaves it out, together with the generated code only it needs.

RunicDropEffect enum

What a drop onto a Window performed, for RunicFileDrop.Effect.

RunicDroppedFile record

A file or directory dropped onto a Window.

RunicFailureAttribute class

Declares the expected failure type of a bridged command.

RunicFailureException class

Signals a declared failure from a command that has RunicFailureAttribute.

RunicFailureException<TFailure> class

Signals a declared failure of type TFailure from a command that has RunicFailureAttribute.

RunicFileDrop record

One drop of files onto a Window, for IRunicFileDropTarget.

RunicFilter class

One filter of a RunicQuery.

RunicFilterOperator enum

What a RunicFilter compares.

RunicHostedApplicationException class

A Runic application could not be hosted in another one's windows (the Runic host protocol, runic-host/1): the guest's hosted start, or a host's start of a guest, failed.

RunicHotReloadRestartEventArgs class

The data of RunicViewsHotReload.RestartRequired.

RunicIgnoreAttribute class

Leaves a public ViewModel member on .NET without exposing it to the web Bridge.

RunicIncludeAttribute class

Marks a public data member as deliberately included in a generated bridge contract.

RunicIncludeJsonIgnoredAttribute class

Keeps DTO properties that System.Text.Json ignores in the Bridge contract of the ViewModels declared in the annotated assembly.

RunicInteractionCancelledException class

Raised when a selected mounted interaction endpoint disappears.

RunicInteractionInvocation class

The trusted origin of work which may ask a browser to handle an interaction or a view request.

RunicInteractionOutputException class

Raised when a browser answered an interaction with output its contract cannot decode.

RunicInteractionTimeoutAttribute class

Sets how long a page may take to answer a ReactiveUI Interaction that a Bridge exposes, or that it has no deadline.

RunicInteractionTimeoutException class

Raised when a page did not answer a browser interaction within its lifetime.

RunicInteractionUnhandledException class

Raised when no page can answer a ViewQuestion that has no fallback.

RunicMenu class

Asks the hosts to read the menu bar's state of Windows again.

RunicNoFieldAttribute class

Leaves a member of a row or of an object member without a field of its own (field-paths/1): the page cannot write it alone, and the generated {View}Fields has no descriptor for it or for the members below it.

RunicOperationClose enum

What a Window's close does to a running operation of the Window.

RunicOperationCloseAttribute class

Declares the RunicOperationClose of operations: on a command property for that command, or on a ViewModel class for each of its operations.

RunicOperationProgress class

Reports the progress of the operation whose command runs on the current asynchronous flow (Views protocol 4, "Progress").

RunicOperationRetirement enum

What happens to a running operation when the navigation entry whose content started it retires.

RunicOperationRetirementAttribute class

Declares the RunicOperationRetirement of operations: on a command property for that command, or on a ViewModel class for each of its operations.

RunicPathChange class

Targets of a RunicPathWatcher that changed together.

RunicPathChangeEntry class

A path that changed, one of the RunicPathChange.Entries of a change.

RunicPathChangeKind enum

How a RunicPathChangeEntry changed.

RunicPathWatcher class

Watches files, symbolic links, directories and Git checkouts, and reports their changes in a model context.

RunicPathWatcherOptions class

Options of a RunicPathWatcher.

RunicPathWatchError class

A problem a RunicPathWatcher works around.

RunicPathWatchErrorKind enum

The kind of a RunicPathWatchError.

RunicPendingValidation class

Tracks validation in progress per member path, for ViewModels of any MVVM framework.

RunicPendingValidationExtensions class

Follows validation streams with a RunicPendingValidation.

RunicPresentation class

Renews and observes the presentations of a ViewModel in the pages of every window that presents it (Views protocol 4, features presentation-epoch/1 and presented/1).

RunicPresentationScopedAttribute class

Scopes a command to the presentation it was issued for: the page sends it with the presentation's epoch, and .NET runs it only while that epoch is current.

RunicPromisedFile class

A dropped file that had no local path, such as a mail attachment, for RunicFileDrop.PromisedFiles.

RunicQuery class

The sort and filter of a RunicQueryCollection: portable between the page and .NET, and mapped to LINQ by RunicQueryFields.

RunicQueryableRowSource<TRow, TKey> class

A IRunicRowSource over an IQueryable: an in-memory list (rows.AsQueryable()), or a database table through a LINQ provider such as Entity Framework Core.

RunicQueryCollection<TRow, TKey> class

A large list that the page sorts, filters and scrolls without holding it: rows stay in an IRunicRowSource, and each presentation loads only the range it shows.

RunicQueryCollectionOptions class

The cache, concurrency, initial query and model context of a RunicQueryCollection.

RunicQueryCollectionStatistics record struct

What a RunicQueryCollection has loaded and keeps.

RunicQueryCollectionView<TRow> class

One View's list of a RunicQueryCollection, for a WPF ItemsControl with UI virtualization: it has RunicQueryCollection.Total items and loads the pages that its panel reads.

RunicQueryFields<TRow> class

The fields a page may sort and filter a RunicQuery by, and how each maps to a LINQ expression of the row.

RunicRegionCollectionAttribute class

Presents a get-only NavigationSelection property as a region collection (Views protocol 4, feature region-collections/1): every region of the selection, in order, with a stable key and its current content, and the selected index.

RunicRowConflicts enum

When a cell write of an editable row is a conflict (RunicRowEditorAttribute.Conflicts).

RunicRowEdit class

What a page changed in a row, for a RunicRowEditorAttribute method that takes it as its third parameter: void UpdateLine(int id, InvoiceLine line, RunicRowEdit edit).

RunicRowEditorAttribute class

Makes the rows of a RunicCollectionAttribute collection editable from the page, cell by cell: the page writes one cell, such as a line's quantity, and the Bridge calls this method with the row's key and the row with that cell changed.

RunicRowPage<TRow> record

The rows a IRunicRowSource loaded for a range.

RunicRowRange record struct

A range of rows: Count rows from position Start.

RunicSharedClientAttribute class

Generates one TypeScript client for the ViewModels that implement this interface, so one web component can render all of them: {Name}State and {Name}Client with the interface's members, and {Name}PageReference, the page reference of any of their Views, whose connect() returns the shared client.

RunicSidePanelClosedEventArgs class

Provides the reason for IRunicSidePanel.Closed.

RunicSidePanelCloseReason enum

Why a side panel closed, for IRunicSidePanel.Closed.

RunicSidePanelEdge enum

An edge of a Window, for RunicSidePanelOptions.Edge and IRunicSidePanel.MoveToEdgeAsync.

RunicSidePanelOptions record

What IRunicWindowPresentation.OpenSidePanelAsync opens: a page of the Window shown beside its page, in a strip on one edge by which the Window grows.

RunicSidePanelRefusal enum

Why a side panel did not open or change.

RunicSidePanelResult record

The outcome of IRunicWindowPresentation.OpenSidePanelAsync: Opened or Refused.

RunicSidePanelResult.Opened record

The panel opened and the Window grew.

RunicSidePanelResult.Refused record

The panel did not open, and the Window did not change.

RunicSortKey record struct

One sort key of a RunicQuery.

RunicTextReference class

A text reference of Runic Translations, held as its wire JSON: a catalog, a message key, typed arguments and an optional fallback text.

RunicUnionAttribute class

Declares the complete derived-type set allowed at a polymorphic bridge boundary.

RunicUnionCaseAttribute class

Sets the stable discriminator used for one case of a Runic union.

RunicUpload class

A file the page uploaded to the Window's host, which a command or setter receives as its input (Views protocol 4, feature blobs/1).

RunicValidationMember record

The member whose validation attribute reported an error, for RunicValidationOptions.TextFor.

RunicValidationMessage record

A structured validation error that a model may return from INotifyDataErrorInfo.GetErrors.

RunicValidationOptions class

How the Bridge writes a ViewModel's validation.

RunicValidationResult class

A ValidationResult with a text reference, for DataAnnotations and CommunityToolkit ObservableValidator: return it from a ValidationAttribute or a CustomValidationAttribute method, and the page shows RunicValidationResult.Text in the window's language, with ValidationResult.ErrorMessage as the fallback.

RunicView<TViewModel> class

A typed logical view.

RunicViewContractAttribute class

Selects a named .NET and web View for a content property.

RunicViewsHotReload class

Refreshes active browser snapshots after an in-process .NET code update.

RunicViewsTelemetry class

Names of the Views runtime's ActivitySource, Meter and log category.

RunicWatchTarget class

A file, symbolic link, directory or Git checkout that a RunicPathWatcher observes.

RunicWindow<TViewModel> class

The native window and root typed context for one Bridge session.

RunicWindowActivity record

Whether a Window is active, minimized and visible, for IRunicWindowPresentation.Activity.

RunicWindowActivityChangedEventArgs class

Provides the previous and new activity for IRunicWindowPresentation.ActivityChanged.

RunicWindowCloseResult record

The admission result of a graceful Window or content-session close.

RunicWindowConfigurationException class

Reports a Window configuration that failed a check before the window opened, on any host.

RunicWindowDiagnostic record

One finding of a Window check, on any host.

RunicWindowDiagnosticSeverity enum

Whether a Window diagnostic prevents the window from opening or only reports a limitation.

RunicWindowHostExtensions class

Opens and validates Windows on any IRunicWindowHost.

RunicWindowModality enum

Whether a Window blocks its owner while it is open (RunicWindowOptions.Modality).

RunicWindowOpening<TViewModel> class

A Window being opened, prepared for its host by RunicWindowHostExtensions.OpenWindowAsync.

RunicWindowOptions record

Host-neutral options for one Window.

RunicWindowParameter<TParameter> class

A fixed IRunicWindowParameter, for a ViewModel that a test builds by hand.

RunicWindowPlacement record

A Window's placement: the bounds it restores to (when it is neither maximized nor full-screen) and whether it is maximized or full-screen, for IRunicWindowPresentation.Placement and IRunicWindowPresentation.SetPlacementAsync.

RunicWindowPresentationExtensions class

Observes a Window's activity without an MVVM library.

RunicWindowPresentationFeatures enum

What a Window's host can do through IRunicWindowPresentation.

RunicWindowResult<TResult> struct

The result of a Window opened with IRunicWindowService.OpenForResultAsync: the value its ViewModel completed it with (IRunicWindowResult.CompleteAsync), or none when the Window closed without one.

RunicWindowsChange enum

What happened to a Window in IRunicWindowService.WindowsChanged.

RunicWindowsChangedEventArgs class

A Window that opened or closed, for IRunicWindowService.WindowsChanged.

RunicWindowServiceCollectionExtensions class

Registers IRunicWindowService for dependency injection.

RunicWindowServiceExtensions class

Observes IRunicWindowService.Windows without System.Reactive.

RunicWindowValidationResult record

Every check RunicWindowHostExtensions.ValidateWindow ran, on any host.

ServiceProviderViewLocator class

Resolves each presented View from the window's service provider.

ViewQuestion<TInput, TOutput> class

A question a ViewModel asks its web View and waits for, such as a confirmation, in either MVVM flavor.

ViewRequest<T> class

A one-way request of a ViewModel to its web View, such as to focus a field, scroll a row into view, scroll to the top or show a toast.

ViewRequestDelivery enum

Where a ViewRequest goes (Views protocol 4, feature view-requests/1, "View requests").

WindowContentSession class

Routes the content ViewModels of one window to their browser presentations.

WindowContentSessionOptions class

Configures a WindowContentSession.

Runic.Application.Views.Generated

BridgeCollectionDescriptor class

Generated, reflection-free metadata for a keyed collection.

BridgeContractShape class

Build-time/Debug reconstruction of the generated Bridge wire shape.

BridgeDataSubscriptionMember class

Describes one observable member of a bridged data graph.

BridgeFieldPath class

One field path below a member or a row (field-paths/1).

BridgeGeneratedCode class

Checks that generated Bridge code matches the generated-code support API of this runtime (RUNICBRIDGE038).

BridgeInteractionDescriptor class

Neutral generated interaction descriptor.

BridgeJson class

JSON helpers called by generated bridges.

BridgeOperationDeliveryFailure record

Describes a result delivery failure.

BridgeOperationDeliveryFailureKind enum

Why a completed operation's result could not be retained or delivered.

BridgeOperationExecution class

The execution context of a streaming operation.

BridgeOperationResult record

The retained outcome of a bridge operation.

BridgeOperationResultKind enum

The shape of a BridgeOperationResult.

BridgeOperationStream class

A bounded, cursor-addressed sequence of encoded operation results.

BridgeOperationStreamItem record

One encoded stream value.

BridgeOperationStreamRead record

The result of BridgeOperationStream.ReadAfter.

BridgeProtocol class

The Views wire protocol described in specs/application/README.md.

BridgeQueryWire class

The wire form of query collections (query-collections/1, specs/application/README.md, "Query collections").

BridgeRegionCollections class

Helpers that generated bridges use to write region collections (RunicRegionCollectionAttribute).

BridgeStateMember class

One member of a View's state: its wire name and a writer of its value.

BridgeValidation class

Writes the validation projection for generated bridge snapshots.

BridgeValidationChild record struct

One generated collection traversal entry.

BridgeValidationReader class

Reads and observes the validation an object keeps outside INotifyDataErrorInfo, such as a ReactiveUI.Validation ValidationContext.

BridgeValueCodec<T> class

A generated, typed JSON value codec for a Runic bridge contract.

BridgeWire class

Static, allocation-conscious JSON primitives used by generated bridge codecs.

CheckedFieldValueKind enum

The wire value type of an acknowledged field write.

CheckedPropertyDescriptor class

Describes one property that accepts acknowledged field writes.

CommandDescriptor class

Describes one bridged command.

PropertyDescriptor class

Describes one bridged ViewModel property.

ViewModelBridge class

Base class of generated bridges that expose one ViewModel over an IBridgeTransport.

ViewQuestionDescriptor class

Factory used by generated Bridges to attach a ViewQuestion member to its route.

ViewRequestDescriptor class

Factory used by generated Bridges to attach a ViewRequest member to its route.