Class ObservableChangeSet
- Namespace
- Dynamic
Data
- Assembly
- DynamicData.dll
Creation methods for observable change sets.
- Inheritance
-
Observable
Change Set
Methods
Create<T>(Func<ISourceList<T>, Action>)
Creates an observable list from a specified Subscribe method implementation.
public static IObservable<IChangeSet<T>> Create<T>(Func<ISourceList<T>, Action> subscribe) where T : notnull
Parameters
subscribeFunc<ISourceList <T>, Action>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChange
Set <T>> The observable list with the specified implementation for the Subscribe method.
Type Parameters
TThe type of the elements contained in the observable list.
Create<T>(Func<ISourceList<T>, IDisposable>)
Creates an observable list from a specified Subscribe method implementation.
public static IObservable<IChangeSet<T>> Create<T>(Func<ISourceList<T>, IDisposable> subscribe) where T : notnull
Parameters
subscribeFunc<ISourceList <T>, IDisposable>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChange
Set <T>> The observable list with the specified implementation for the Subscribe method.
Type Parameters
TThe type of the elements contained in the observable list.
Create<T>(Func<ISourceList<T>, CancellationToken, Task<Action>>)
Creates an observable list from a specified cancellable asynchronous Subscribe method. The CancellationToken passed to the asynchronous Subscribe method is tied to the returned disposable subscription, allowing best-effort cancellation.
public static IObservable<IChangeSet<T>> Create<T>(Func<ISourceList<T>, CancellationToken, Task<Action>> subscribe) where T : notnull
Parameters
subscribeFunc<ISourceList <T>, CancellationToken , Task<Action>>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChange
Set <T>> The observable list with the specified implementation for the Subscribe method.
Type Parameters
TThe type of the elements contained in the observable list.
Create<T>(Func<ISourceList<T>, CancellationToken, Task<IDisposable>>)
Creates an observable list from a specified cancellable asynchronous Subscribe method. The CancellationToken passed to the asynchronous Subscribe method is tied to the returned disposable subscription, allowing best-effort cancellation.
public static IObservable<IChangeSet<T>> Create<T>(Func<ISourceList<T>, CancellationToken, Task<IDisposable>> subscribe) where T : notnull
Parameters
subscribeFunc<ISourceList <T>, CancellationToken , Task<IDisposable>>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChange
Set <T>> The observable list with the specified implementation for the Subscribe method.
Type Parameters
TThe type of the elements contained in the observable list.
Create<T>(Func<ISourceList<T>, CancellationToken, Task>)
Creates an observable list from a specified cancellable asynchronous Subscribe method. The CancellationToken passed to the asynchronous Subscribe method is tied to the returned disposable subscription, allowing best-effort cancellation.
public static IObservable<IChangeSet<T>> Create<T>(Func<ISourceList<T>, CancellationToken, Task> subscribe) where T : notnull
Parameters
subscribeFunc<ISourceList <T>, CancellationToken , Task>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChange
Set <T>> The observable list with the specified implementation for the Subscribe method.
Type Parameters
TThe type of the elements contained in the observable list.
Create<T>(Func<ISourceList<T>, Task<Action>>)
Creates an observable list from a specified cancellable asynchronous Subscribe method. The CancellationToken passed to the asynchronous Subscribe method is tied to the returned disposable subscription, allowing best-effort cancellation.
public static IObservable<IChangeSet<T>> Create<T>(Func<ISourceList<T>, Task<Action>> subscribe) where T : notnull
Parameters
subscribeFunc<ISourceList <T>, Task<Action>>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChange
Set <T>> The observable list with the specified implementation for the Subscribe method.
Type Parameters
TThe type of the elements contained in the observable list.
Create<T>(Func<ISourceList<T>, Task<IDisposable>>)
Creates an observable list from a specified Subscribe method implementation.
public static IObservable<IChangeSet<T>> Create<T>(Func<ISourceList<T>, Task<IDisposable>> subscribe) where T : notnull
Parameters
subscribeFunc<ISourceList <T>, Task<IDisposable>>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChange
Set <T>> The observable list with the specified implementation for the Subscribe method.
Type Parameters
TThe type of the elements contained in the observable list.
Create<T>(Func<ISourceList<T>, Task>)
Creates an observable list from a specified asynchronous Subscribe method.
public static IObservable<IChangeSet<T>> Create<T>(Func<ISourceList<T>, Task> subscribe) where T : notnull
Parameters
subscribeFunc<ISourceList <T>, Task>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChange
Set <T>> The observable list with the specified implementation for the Subscribe method.
Type Parameters
TThe type of the elements contained in the observable list.
Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, Action>, Func<TObject, TKey>)
Creates an observable cache from a specified Subscribe method implementation.
public static IObservable<IChangeSet<TObject, TKey>> Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, Action> subscribe, Func<TObject, TKey> keySelector) where TObject : notnull where TKey : notnull
Parameters
subscribeFunc<ISourceCache <TObject, TKey>, Action>Implementation of the resulting observable cache's Subscribe method.
keySelectorFunc<TObject, TKey>The key selector.
Returns
- IObservable<IChange
Set <TObject, TKey>> The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObjectThe type of the elements contained in the observable cache.
TKeyThe type of the specified key.
Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, IDisposable>, Func<TObject, TKey>)
Creates an observable cache from a specified Subscribe method implementation.
public static IObservable<IChangeSet<TObject, TKey>> Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, IDisposable> subscribe, Func<TObject, TKey> keySelector) where TObject : notnull where TKey : notnull
Parameters
subscribeFunc<ISourceCache <TObject, TKey>, IDisposable>Implementation of the resulting observable cache's Subscribe method.
keySelectorFunc<TObject, TKey>The key selector.
Returns
- IObservable<IChange
Set <TObject, TKey>> The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObjectThe type of the elements contained in the observable cache.
TKeyThe type of the specified key.
Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, CancellationToken, Task<Action>>, Func<TObject, TKey>)
Creates an observable cache from a specified cancellable asynchronous Subscribe method. The CancellationToken passed to the asynchronous Subscribe method is tied to the returned disposable subscription, allowing best-effort cancellation.
public static IObservable<IChangeSet<TObject, TKey>> Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, CancellationToken, Task<Action>> subscribe, Func<TObject, TKey> keySelector) where TObject : notnull where TKey : notnull
Parameters
subscribeFunc<ISourceCache <TObject, TKey>, CancellationToken , Task<Action>>Implementation of the resulting observable cache's Subscribe method.
keySelectorFunc<TObject, TKey>The key selector.
Returns
- IObservable<IChange
Set <TObject, TKey>> The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObjectThe type of the elements contained in the observable cache.
TKeyThe type of the specified key.
Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, CancellationToken, Task<IDisposable>>, Func<TObject, TKey>)
Creates an observable cache from a specified cancellable asynchronous Subscribe method. The CancellationToken passed to the asynchronous Subscribe method is tied to the returned disposable subscription, allowing best-effort cancellation.
public static IObservable<IChangeSet<TObject, TKey>> Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, CancellationToken, Task<IDisposable>> subscribe, Func<TObject, TKey> keySelector) where TObject : notnull where TKey : notnull
Parameters
subscribeFunc<ISourceCache <TObject, TKey>, CancellationToken , Task<IDisposable>>Implementation of the resulting observable cache's Subscribe method.
keySelectorFunc<TObject, TKey>The key selector.
Returns
- IObservable<IChange
Set <TObject, TKey>> The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObjectThe type of the elements contained in the observable cache.
TKeyThe type of the specified key.
Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, CancellationToken, Task>, Func<TObject, TKey>)
Creates an observable cache from a specified cancellable asynchronous Subscribe method. The CancellationToken passed to the asynchronous Subscribe method is tied to the returned disposable subscription, allowing best-effort cancellation.
public static IObservable<IChangeSet<TObject, TKey>> Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, CancellationToken, Task> subscribe, Func<TObject, TKey> keySelector) where TObject : notnull where TKey : notnull
Parameters
subscribeFunc<ISourceCache <TObject, TKey>, CancellationToken , Task>Implementation of the resulting observable cache's Subscribe method.
keySelectorFunc<TObject, TKey>The key selector.
Returns
- IObservable<IChange
Set <TObject, TKey>> The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObjectThe type of the elements contained in the observable cache.
TKeyThe type of the specified key.
Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, Task<Action>>, Func<TObject, TKey>)
Creates an observable cache from a specified cancellable asynchronous Subscribe method. The CancellationToken passed to the asynchronous Subscribe method is tied to the returned disposable subscription, allowing best-effort cancellation.
public static IObservable<IChangeSet<TObject, TKey>> Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, Task<Action>> subscribe, Func<TObject, TKey> keySelector) where TObject : notnull where TKey : notnull
Parameters
subscribeFunc<ISourceCache <TObject, TKey>, Task<Action>>Implementation of the resulting observable cache's Subscribe method.
keySelectorFunc<TObject, TKey>The key selector.
Returns
- IObservable<IChange
Set <TObject, TKey>> The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObjectThe type of the elements contained in the observable cache.
TKeyThe type of the specified key.
Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, Task<IDisposable>>, Func<TObject, TKey>)
Creates an observable cache from a specified Subscribe method implementation.
public static IObservable<IChangeSet<TObject, TKey>> Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, Task<IDisposable>> subscribe, Func<TObject, TKey> keySelector) where TObject : notnull where TKey : notnull
Parameters
subscribeFunc<ISourceCache <TObject, TKey>, Task<IDisposable>>Implementation of the resulting observable cache's Subscribe method.
keySelectorFunc<TObject, TKey>The key selector.
Returns
- IObservable<IChange
Set <TObject, TKey>> The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObjectThe type of the elements contained in the observable cache.
TKeyThe type of the specified key.
Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, Task>, Func<TObject, TKey>)
Creates an observable cache from a specified asynchronous Subscribe method.
public static IObservable<IChangeSet<TObject, TKey>> Create<TObject, TKey>(Func<ISourceCache<TObject, TKey>, Task> subscribe, Func<TObject, TKey> keySelector) where TObject : notnull where TKey : notnull
Parameters
subscribeFunc<ISourceCache <TObject, TKey>, Task>Implementation of the resulting observable cache's Subscribe method.
keySelectorFunc<TObject, TKey>The key selector.
Returns
- IObservable<IChange
Set <TObject, TKey>> The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObjectThe type of the elements contained in the observable cache.
TKeyThe type of the specified key.