Share via


BatchedJoinBlock<T1,T2,T3>.ISourceBlock<Tuple<IList<T1>,IList<T2>,IList<T3>>>.ConsumeMessage 메서드

정의

ISourceBlock<TOutput> 인스턴스의 DataflowMessageHeader로 식별된 메시지의 소유권을 ITargetBlock<TInput>으로 전달합니다.

 virtual Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^, System::Collections::Generic::IList<T3> ^> ^ System.Threading.Tasks.Dataflow.ISourceBlock<System.Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>,System.Collections.Generic.IList<T3>>>.ConsumeMessage(System::Threading::Tasks::Dataflow::DataflowMessageHeader messageHeader, System::Threading::Tasks::Dataflow::ITargetBlock<Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^, System::Collections::Generic::IList<T3> ^> ^> ^ target, [Runtime::InteropServices::Out] bool % messageConsumed) = System::Threading::Tasks::Dataflow::ISourceBlock<Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^, System::Collections::Generic::IList<T3> ^> ^>::ConsumeMessage;
Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>,System.Collections.Generic.IList<T3>> ISourceBlock<Tuple<IList<T1>,IList<T2>,IList<T3>>>.ConsumeMessage (System.Threading.Tasks.Dataflow.DataflowMessageHeader messageHeader, System.Threading.Tasks.Dataflow.ITargetBlock<Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>,System.Collections.Generic.IList<T3>>> target, out bool messageConsumed);
abstract member System.Threading.Tasks.Dataflow.ISourceBlock<System.Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>,System.Collections.Generic.IList<T3>>>.ConsumeMessage : System.Threading.Tasks.Dataflow.DataflowMessageHeader * System.Threading.Tasks.Dataflow.ITargetBlock<System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2> * System.Collections.Generic.IList<'T3>> * bool -> System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2> * System.Collections.Generic.IList<'T3>
override this.System.Threading.Tasks.Dataflow.ISourceBlock<System.Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>,System.Collections.Generic.IList<T3>>>.ConsumeMessage : System.Threading.Tasks.Dataflow.DataflowMessageHeader * System.Threading.Tasks.Dataflow.ITargetBlock<System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2> * System.Collections.Generic.IList<'T3>> * bool -> System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2> * System.Collections.Generic.IList<'T3>
Function ConsumeMessage (messageHeader As DataflowMessageHeader, target As ITargetBlock(Of Tuple(Of IList(Of T1), IList(Of T2), IList(Of T3))), ByRef messageConsumed As Boolean) As Tuple(Of IList(Of T1), IList(Of T2), IList(Of T3)) Implements ISourceBlock(Of Tuple(Of IList(Of T1), IList(Of T2), IList(Of T3))).ConsumeMessage

매개 변수

messageHeader
DataflowMessageHeader

사용할 메시지의 DataflowMessageHeader입니다.

target
ITargetBlock<Tuple<IList<T1>,IList<T2>,IList<T3>>>

메시지가 사용될 ITargetBlock<TInput>입니다.

messageConsumed
Boolean

메시지가 성공적으로 사용되었으면 true입니다. 그렇지 않으면 false입니다.

반환

Tuple<IList<T1>,IList<T2>,IList<T3>>

사용한 메시지의 값입니다. 이전에 예약되어 messageHeader로 이 메서드에 전달된 것과 다른 DataflowMessageHeader 인스턴스에 해당할 수 있습니다. 사용하는 ITargetBlock<TInput>OfferMessage(DataflowMessageHeader, TInput, ISourceBlock<TInput>, Boolean)messageValue로 전달된 값 대신 반환된 값을 사용해야 합니다. 요청한 메시지를 사용할 수 없으면 반환 값은 null(Visual Basic에서는 Nothing)이 됩니다.

구현

예외

messageHeader이 올바르지 않은 경우

targetnull(Visual Basic에서는 없음)입니다.

설명

메시지를 사용할 대상은 ITargetBlock<TInput>ISourceBlock<TOutput> 인스턴스에서 연결할 필요가 없습니다. 또한 이 ISourceBlock<TOutput> 인스턴스는 메시지를 직접 ITargetBlock<TInput>제공하지 않았을 수 있습니다.

적용 대상