Runic.Application.Views
BridgeCollectionDescriptor<T>recordGenerated, reflection-free metadata for a keyed collection.
BridgeCommandResultCardinalityenumControls how an observable ReactiveUI command result is retained.
BridgeContractShapeclassBuild-time/Debug reconstruction of the generated Bridge wire shape.
BridgeDataSubscriptionMemberclassDescribes one observable member of a bridged data graph. Created by generated bridges.
BridgeDiagnosticsclassControls the local failure detail of Bridge error replies.
BridgeInteractionDescriptor<TModel>classNeutral generated interaction descriptor. Optional adapters implement its attachment behavior.
BridgeInteractionRouterclassWindow-owned request/reply broker for typed interaction adapters. Browser delivery is pull-based: a mounted endpoint receives input only as the reply to its own authenticated wait route.
BridgeJsonclassJSON helpers called by generated bridges.
BridgeOperationDeliveryFailurerecordDescribes a result delivery failure.
BridgeOperationDeliveryFailureKindenumWhy a completed operation's result could not be retained or delivered.
BridgeOperationExecutionclassThe execution context of a streaming operation.
BridgeOperationResultrecordThe retained outcome of a bridge operation.
BridgeOperationResultKindenumThe shape of a
BridgeOperationResult.BridgeOperationStreamclassA bounded, cursor-addressed sequence of encoded operation results.
BridgeOperationStreamItemrecordOne encoded stream value.
BridgeOperationStreamReadrecordThe result of
BridgeOperationStream.ReadAfter.BridgeProtocolclassThe Views wire protocol described in specs/application/README.md.
BridgeSnapshotBatchclassDefers notification-driven bridge snapshots for one model until the outermost scope ends. Use this around a synchronous bulk mutation:
BridgeSnapshotWriter<T>delegateWrites a ViewModel snapshot. Implemented by generated bridges.
BridgeValidationclassWrites the validation projection for generated bridge snapshots.
BridgeValidationChildrecord structOne generated collection traversal entry.
BridgeValidationChild.PathSegmentmust be a string dictionary key or an integer list index. Generated metadata supplies these entries without reflection so validation remains AOT-safe.BridgeValidationMessagerecordA structured validation error that a model may return from
INotifyDataErrorInfo.GetErrors. Member paths are relative CLR property paths (for exampleAddress.Postcode); the bridge resolves them through generated metadata before placing them on the wire. One message is emitted for each supplied member path.BridgeValueCodec<T>classA generated, typed JSON value codec for a Runic bridge contract.
BridgeWindowCloseResultrecordThe admission result of a graceful Window or content-session close.
BridgeWireclassStatic, allocation-conscious JSON primitives used by generated bridge codecs. Values whose JavaScript number representation can lose precision are represented as invariant strings on the wire.
CheckedFieldValueKindenumThe wire value type of an acknowledged field write.
CheckedPropertyDescriptor<T>classDescribes one property that accepts acknowledged field writes. Created by generated bridges.
CommandDescriptor<T>recordDescribes one bridged command. Created by generated bridges.
IAsyncBridgeTransportinterfaceA host that can acknowledge state delivery before the next dependent frame is sent.
IBridgeArgumentsinterfacePositional arguments of one browser call, read in declaration order.
IBridgeTransportinterfaceThe host adapter surface used by generated bridges to bind routes and publish state.
IBridgeWindowinterfaceThe lifetime contract shared by every Window host adapter, such as
CsWebUiBridgeWindow<TViewModel>andDesktopBridgeWindow<TViewModel>.IRunicBridgeCodec<T>interfaceImplement this interface with public static methods to define an explicit bridge representation for a type the generated standard codec does not cover. The generator verifies the closed generic type and emits direct static calls, so no codec discovery occurs at runtime.
IRunicViewinterfaceA .NET presentation object associated with a web component.
IRunicViewLifetimeinterfaceOptional hooks for the period during which a view is presented.
IRunicViewLocatorinterfaceResolves a fresh .NET view for a presented ViewModel.
IRunicWebMountLifetimeinterfaceOptional visual mount acknowledgement from a web component.
IRunicWebPresentationLifetimeinterfaceOptional ownership hooks for a logical View instance created for each web presentation. The presentation identifier is private transport bookkeeping; application code should not manufacture or retain it.
PageReferencerecordA window-local reference to a ViewModel presented as content.
PropertyDescriptor<T>classDescribes one bridged ViewModel property. Created by generated bridges.
RunicAliasAttributeclassSets a stable JSON field or enum-case name without exposing CLR naming as protocol.
RunicBridgeCodecAttributeclassAssociates a contract type or member with an explicit AOT-safe bridge codec.
RunicBridgeHotReloadclassRefreshes active browser snapshots after an in-process .NET code update.
RunicCodecShapeAttributeclassSupplies the TypeScript representation and decoder expression for an explicit bridge codec. The expression must contain
$value, which the generator replaces with the untrusted JSON value at the call site.RunicCollectionAttributeclassPublishes indexed changes for a collection whose items have a stable, unique key.
RunicCommandInputAttributeclassDeclares the browser argument shape for a plain
ICommand. The command itself remains synchronous; the bridge only uses this metadata to decode the wire argument and to make the generated TypeScript surface typed.RunicCommandResultAttributeclassOpts a generated command contract into a non-default result cardinality. ReactiveUI commands with
RxVoidhave no result and do not need this attribute.RunicFailureAttributeclassDeclares the expected failure type of a bridged command. Put it on the command property or on a CommunityToolkit
[RelayCommand]method. The command signals the failure by throwingRunicFailureExceptionwith a value of this type; the generated client receives it as a typed failure instead of an error.RunicFailureExceptionclassSignals a declared failure from a command that has
RunicFailureAttribute. The Bridge sendsRunicFailureException.Failureto the client as adomain-failedreply. A value that is not the declared type is reported as an unexpected failure.RunicIgnoreAttributeclassLeaves a public ViewModel member on .NET without exposing it to the web Bridge.
RunicIncludeAttributeclassMarks a public data member as deliberately included in a generated bridge contract.
RunicInteractionCancelledExceptionclassRaised when a selected mounted interaction endpoint disappears.
RunicInteractionInvocationclassThe trusted origin of work which may ask a browser to handle an interaction. Generated bridges establish this scope around a command or operation. It is deliberately absent for arbitrary background work, which must use a .NET handler or opt into an explicit scope.
RunicInteractionOutputExceptionclassRaised when a browser answered an interaction with output its contract cannot decode.
RunicInteractionTimeoutExceptionclassRaised when a browser interaction exceeded its configured lifetime.
RunicUnionAttributeclassDeclares the complete derived-type set allowed at a polymorphic bridge boundary.
RunicUnionCaseAttributeclassSets the stable discriminator used for one case of a Runic union.
RunicView<TViewModel>classA typed logical view. It owns no DOM and does not inherit Avalonia's control tree; the frontend chooses and renders the corresponding component.
RunicViewContractAttributeclassSelects a named .NET and web View for a content property.
RunicViewsTelemetryclassNames of the Views runtime's
ActivitySource,Meterand log category.RunicWindow<TViewModel>classThe native window owner and root typed context for one Bridge session.
ServiceProviderViewLocatorclassResolves each presented View from the window's service provider. Generated
AddRunicViews()registrations make this the default locator and register every non-Window View as transient. A View contract is already a distinct View type, so the contract needs no separate lookup.ViewModelBridge<T>classBase class of generated bridges that expose one ViewModel over an
IBridgeTransport.WindowContentSessionclassExperimental instance routing for content ViewModels. The window owns this session and the application or DI scope continues to own the ViewModels.
WindowContentSessionOptionsclassConfigures a
WindowContentSession.