public class ViewModelBridge<T> : IDisposable where T : INotifyPropertyChanged Base class of generated bridges that expose one ViewModel over an IBridgeTransport.
Constructors
ViewModelBridge
protected ViewModelBridge(IBridgeTransport transport, T vm, string name, Action<Utf8JsonWriter, T, long> writeSnapshot, PropertyDescriptor<T>[] properties, CommandDescriptor<T>[] commands, string? contractFingerprint = null, WindowContentSession? content = null, BridgeInteractionDescriptor<T>[]? interactions = null, BridgeDataSubscriptionMember[]? dataSubscriptions = null, BridgeCollectionDescriptor<T>[]? collections = null) Creates a bridge whose snapshot writer does not emit field-write metadata.
ViewModelBridge
protected ViewModelBridge(IBridgeTransport transport, T vm, string name, BridgeSnapshotWriter<T> writeSnapshot, PropertyDescriptor<T>[] properties, CheckedPropertyDescriptor<T>[] checkedProperties, CommandDescriptor<T>[] commands, string? contractFingerprint = null, WindowContentSession? content = null, BridgeInteractionDescriptor<T>[]? interactions = null, BridgeDataSubscriptionMember[]? dataSubscriptions = null, BridgeCollectionDescriptor<T>[]? collections = null) Creates a bridge with acknowledged field writes.
Methods
Dispose
public virtual void Dispose() Unbinds the bridge's routes and stops observing the ViewModel.