Class ObservableChangeSet
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
Creation methods for observable change sets.
public static class ObservableChangeSet
- Inheritance
-
ObservableChangeSet
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
subscribe
Func<ISourceList<T>, Action>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChangeSet<T>>
The observable list with the specified implementation for the Subscribe method.
Type Parameters
T
The 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
subscribe
Func<ISourceList<T>, IDisposable>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChangeSet<T>>
The observable list with the specified implementation for the Subscribe method.
Type Parameters
T
The 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
subscribe
Func<ISourceList<T>, CancellationToken, Task<Action>>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChangeSet<T>>
The observable list with the specified implementation for the Subscribe method.
Type Parameters
T
The 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
subscribe
Func<ISourceList<T>, CancellationToken, Task<IDisposable>>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChangeSet<T>>
The observable list with the specified implementation for the Subscribe method.
Type Parameters
T
The 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
subscribe
Func<ISourceList<T>, CancellationToken, Task>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChangeSet<T>>
The observable list with the specified implementation for the Subscribe method.
Type Parameters
T
The 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
subscribe
Func<ISourceList<T>, Task<Action>>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChangeSet<T>>
The observable list with the specified implementation for the Subscribe method.
Type Parameters
T
The 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
subscribe
Func<ISourceList<T>, Task<IDisposable>>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChangeSet<T>>
The observable list with the specified implementation for the Subscribe method.
Type Parameters
T
The 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
subscribe
Func<ISourceList<T>, Task>Implementation of the resulting observable list's Subscribe method.
Returns
- IObservable<IChangeSet<T>>
The observable list with the specified implementation for the Subscribe method.
Type Parameters
T
The 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
subscribe
Func<ISourceCache<TObject, TKey>, Action>Implementation of the resulting observable cache's Subscribe method.
keySelector
Func<TObject, TKey>The key selector.
Returns
- IObservable<IChangeSet<TObject, TKey>>
The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObject
The type of the elements contained in the observable cache.
TKey
The 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
subscribe
Func<ISourceCache<TObject, TKey>, IDisposable>Implementation of the resulting observable cache's Subscribe method.
keySelector
Func<TObject, TKey>The key selector.
Returns
- IObservable<IChangeSet<TObject, TKey>>
The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObject
The type of the elements contained in the observable cache.
TKey
The 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
subscribe
Func<ISourceCache<TObject, TKey>, CancellationToken, Task<Action>>Implementation of the resulting observable cache's Subscribe method.
keySelector
Func<TObject, TKey>The key selector.
Returns
- IObservable<IChangeSet<TObject, TKey>>
The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObject
The type of the elements contained in the observable cache.
TKey
The 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
subscribe
Func<ISourceCache<TObject, TKey>, CancellationToken, Task<IDisposable>>Implementation of the resulting observable cache's Subscribe method.
keySelector
Func<TObject, TKey>The key selector.
Returns
- IObservable<IChangeSet<TObject, TKey>>
The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObject
The type of the elements contained in the observable cache.
TKey
The 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
subscribe
Func<ISourceCache<TObject, TKey>, CancellationToken, Task>Implementation of the resulting observable cache's Subscribe method.
keySelector
Func<TObject, TKey>The key selector.
Returns
- IObservable<IChangeSet<TObject, TKey>>
The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObject
The type of the elements contained in the observable cache.
TKey
The 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
subscribe
Func<ISourceCache<TObject, TKey>, Task<Action>>Implementation of the resulting observable cache's Subscribe method.
keySelector
Func<TObject, TKey>The key selector.
Returns
- IObservable<IChangeSet<TObject, TKey>>
The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObject
The type of the elements contained in the observable cache.
TKey
The 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
subscribe
Func<ISourceCache<TObject, TKey>, Task<IDisposable>>Implementation of the resulting observable cache's Subscribe method.
keySelector
Func<TObject, TKey>The key selector.
Returns
- IObservable<IChangeSet<TObject, TKey>>
The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObject
The type of the elements contained in the observable cache.
TKey
The 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
subscribe
Func<ISourceCache<TObject, TKey>, Task>Implementation of the resulting observable cache's Subscribe method.
keySelector
Func<TObject, TKey>The key selector.
Returns
- IObservable<IChangeSet<TObject, TKey>>
The observable cache with the specified implementation for the Subscribe method.
Type Parameters
TObject
The type of the elements contained in the observable cache.
TKey
The type of the specified key.