BridgeSnapshotObservableExtensions class

Namespace Runic.Application.Views in Runic.Application.Views 0.23.0

public static class BridgeSnapshotObservableExtensions

Applies observable batches on Runic's bridge publication boundary.

Methods

BatchBridgeSnapshots

public static IObservable<T> BatchBridgeSnapshots<T>(this IObservable<T> source, object model)

Defers bridge captures until the synchronous delivery of each changeset completes.

Parameters

source

The changesets to deliver.

model

The ViewModel whose Bridge snapshots are deferred while a changeset is delivered.

Remarks

Place this after ObserveOn(modelSequencer) and immediately before Bind or SortAndBind. A batch around SourceCache.Edit ends too early when a scheduler defers collection updates. Disposal and terminal notifications are forwarded to the source. It works with any IObservable, such as DynamicData's or either ReactiveUI flavor's.