IAsyncQueryable<TEntity>.SubscribeAsync Method

Definition

Overloads

SubscribeAsync(IObserver<IQueryResults<TEntity>>)

Subscribes results from a query, which automatically reruns when data source is changed.

SubscribeAsync(ICommonQueryableSpace, IObserver<IQueryResults<TEntity>>)

Subscribes results from a query, which automatically reruns when data source is changed.

SubscribeAsync(IObserver<IQueryResults<TEntity>>, CancellationToken)

Subscribes results from a query, which automatically reruns when data source is changed.

SubscribeAsync(ICommonQueryableSpace, IObserver<IQueryResults<TEntity>>, CancellationToken)

Subscribes results from a query, which automatically reruns when data source is changed.

SubscribeAsync(IObserver<IQueryResults<TEntity>>)

Subscribes results from a query, which automatically reruns when data source is changed.

public System.Threading.Tasks.Task<IDisposable> SubscribeAsync (IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<TEntity>> resultsReceiver);
abstract member SubscribeAsync : IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<'Entity>> -> System.Threading.Tasks.Task<IDisposable>
Public Function SubscribeAsync (resultsReceiver As IObserver(Of IQueryResults(Of TEntity))) As Task(Of IDisposable)

Parameters

resultsReceiver
IObserver<IQueryResults<TEntity>>

A component which receives updates.

Returns

A way to cancel the subscription.

Applies to

SubscribeAsync(ICommonQueryableSpace, IObserver<IQueryResults<TEntity>>)

Subscribes results from a query, which automatically reruns when data source is changed.

public System.Threading.Tasks.Task<IDisposable> SubscribeAsync (Microsoft.VisualStudio.ProjectSystem.Query.ICommonQueryableSpace queryableSpace, IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<TEntity>> resultsReceiver);
abstract member SubscribeAsync : Microsoft.VisualStudio.ProjectSystem.Query.ICommonQueryableSpace * IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<'Entity>> -> System.Threading.Tasks.Task<IDisposable>
Public Function SubscribeAsync (queryableSpace As ICommonQueryableSpace, resultsReceiver As IObserver(Of IQueryResults(Of TEntity))) As Task(Of IDisposable)

Parameters

queryableSpace
ICommonQueryableSpace

The model space to execute the query.

resultsReceiver
IObserver<IQueryResults<TEntity>>

A component which receives updates.

Returns

A way to cancel the subscription.

Applies to

SubscribeAsync(IObserver<IQueryResults<TEntity>>, CancellationToken)

Subscribes results from a query, which automatically reruns when data source is changed.

public System.Threading.Tasks.Task<IDisposable> SubscribeAsync (IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<TEntity>> resultsReceiver, System.Threading.CancellationToken cancellationToken);
abstract member SubscribeAsync : IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<'Entity>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Public Function SubscribeAsync (resultsReceiver As IObserver(Of IQueryResults(Of TEntity)), cancellationToken As CancellationToken) As Task(Of IDisposable)

Parameters

resultsReceiver
IObserver<IQueryResults<TEntity>>

A component which receives updates.

cancellationToken
CancellationToken

A cancellation token to cancel the subscription before it is done.

Returns

A way to cancel the subscription.

Applies to

SubscribeAsync(ICommonQueryableSpace, IObserver<IQueryResults<TEntity>>, CancellationToken)

Subscribes results from a query, which automatically reruns when data source is changed.

public System.Threading.Tasks.Task<IDisposable> SubscribeAsync (Microsoft.VisualStudio.ProjectSystem.Query.ICommonQueryableSpace queryableSpace, IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<TEntity>> resultsReceiver, System.Threading.CancellationToken cancellationToken);
abstract member SubscribeAsync : Microsoft.VisualStudio.ProjectSystem.Query.ICommonQueryableSpace * IObserver<Microsoft.VisualStudio.ProjectSystem.Query.IQueryResults<'Entity>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Public Function SubscribeAsync (queryableSpace As ICommonQueryableSpace, resultsReceiver As IObserver(Of IQueryResults(Of TEntity)), cancellationToken As CancellationToken) As Task(Of IDisposable)

Parameters

queryableSpace
ICommonQueryableSpace

The model space to execute the query.

resultsReceiver
IObserver<IQueryResults<TEntity>>

A component which receives updates.

cancellationToken
CancellationToken

A cancellation token to cancel the subscription before it is done.

Returns

A way to cancel the subscription.

Applies to