IAsyncQueryable<TEntity>.TrackUpdatesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tracks a query, which automatically reruns when the data source is changed.
public System.Threading.Tasks.Task<IDisposable> TrackUpdatesAsync (IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryTrackUpdates<TEntity>> resultsReceiver, System.Threading.CancellationToken cancellationToken);
abstract member TrackUpdatesAsync : IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryTrackUpdates<'Entity>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Public Function TrackUpdatesAsync (resultsReceiver As IObserver(Of IQueryTrackUpdates(Of TEntity)), cancellationToken As CancellationToken) As Task(Of IDisposable)
Parameters
- resultsReceiver
- IObserver<IQueryTrackUpdates<TEntity>>
A component which receives updates.
- cancellationToken
- CancellationToken
A cancellation token to cancel the tracking.
Returns
A way to cancel the query tracking.