Compartir a través de


IQueryDataTransformer<TSource,TResult> Interface

Definition

A transformer is both a data receiver and producer, and always produce one or zero piece of output for each of its input.

public interface IQueryDataTransformer<TSource,TResult> : Microsoft.VisualStudio.ProjectSystem.Query.Execution.IQueryDataProducer<TResult>, Microsoft.VisualStudio.ProjectSystem.Query.Execution.IQueryResultReceiver<TSource>
type IQueryDataTransformer<'Source, 'Result> = interface
    interface IQueryResultReceiver<'Source>
    interface IQueryDataProducer<'Result>
Public Interface IQueryDataTransformer(Of TSource, TResult)
Implements IQueryDataProducer(Of TResult), IQueryResultReceiver(Of TSource)

Type Parameters

TSource

The type of the source data of the transformer.

TResult

The type of the result data of the transformer.

Derived
Implements

Methods

LinkTo(IQueryResultReceiver<TResult>)

Link the query step to a block to process the result. The query engine will call it exactly once before using this query step.

(Inherited from IQueryDataProducer<TResult>)
OnRequestProcessFinishedAsync(IQueryProcessRequest)

The query step tells the receiver that it finished all processing for one request.

(Inherited from IQueryResultReceiver<TResult>)
ReceiveResultAsync(QueryProcessResult<TResult>)

Receives one piece of the result from a query step. A single request can produce multiple data, and it is expected this method will be called multiple times during the process.

(Inherited from IQueryResultReceiver<TResult>)

Applies to