Skip to content

},DynamicData.IChangeSetAdaptor{--0,--1})} },DynamicData.ISortedChangeSetAdaptor{--0,--1})}

ObservableCacheEx.Adapt(IObservable>, IChangeSetAdaptor) method

Defined in

Type: ObservableCacheEx Namespace: DynamicData Assembly: DynamicData.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, netstandard2.0, net462

Overloads

  • 1. public static IObservable<IChangeSet<TObject, TKey>> Adapt<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IChangeSetAdaptor<TObject, TKey> adaptor) where TObject : notnull where TKey : notnull
  • 2. public static IObservable<IChangeSet<TObject, TKey>> Adapt<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, ISortedChangeSetAdaptor<TObject, TKey> adaptor) where TObject : notnull where TKey : notnull

1. Overload

public static IObservable<IChangeSet<TObject, TKey>> Adapt<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IChangeSetAdaptor<TObject, TKey> adaptor) where TObject : notnull where TKey : notnull

View source

Summary: Inject side effects into the stream using the specified adaptor.

Type parameters

NameDescription
TObjectThe type of the object.
TKeyThe type of the key.

Parameters

NameTypeDescription
sourceIObservable>The source.
adaptor[IChangeSetAdaptor](#The adaptor.

Returns: IObservable> -- An observable which will emit change sets.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or destination.

2. Overload

public static IObservable<IChangeSet<TObject, TKey>> Adapt<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, ISortedChangeSetAdaptor<TObject, TKey> adaptor) where TObject : notnull where TKey : notnull

View source

Summary: Inject side effects into the stream using the specified sorted adaptor.

Type parameters

NameDescription
TObjectThe type of the object.
TKeyThe type of the key.

Parameters

NameTypeDescription
sourceIObservable>The source.
adaptor[ISortedChangeSetAdaptor](#The adaptor.

Returns: IObservable> -- An observable which will emit change sets.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or destination.