>
Defined in Type: ObservableListEx
Namespace: DynamicData
Assembly: DynamicData.dll
Applies to
net10.0, netstandard2.0
public static IObservable<IChangeSet<T>> RefCount<T>(this IObservable<IChangeSet<T>> source) where T : notnull
Summary: Reference-counted materialization of the source changeset stream into an IObservableList. The shared list is created on the first subscriber and disposed when the last subscriber unsubscribes.
Type parameters
| Name | Description |
|---|---|
T | The type of the item. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source IObservable<IChangeSet<T>> to share via reference counting. |
Returns: IObservable
Remarks
Equivalent to Publish().RefCount() for changeset streams. The underlying list is created lazily on first subscription.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source is null. |
See also