Partager via


IAsyncQueryable<TEntity>.TrackUpdatesAsync Method

Definition

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.

Applies to