BatchedJoinBlock<T1,T2>.ISourceBlock<Tuple<IList<T1>,IList<T2>>>.ConsumeMessage Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Passa a propriedade da mensagem identificada por o DataflowMessageHeader a partir desta ISourceBlock<TOutput> instância para a ITargetBlock<TInput>.
virtual Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^> ^ System.Threading.Tasks.Dataflow.ISourceBlock<System.Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>>.ConsumeMessage(System::Threading::Tasks::Dataflow::DataflowMessageHeader messageHeader, System::Threading::Tasks::Dataflow::ITargetBlock<Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^> ^> ^ target, [Runtime::InteropServices::Out] bool % messageConsumed) = System::Threading::Tasks::Dataflow::ISourceBlock<Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^> ^>::ConsumeMessage;
Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>> ISourceBlock<Tuple<IList<T1>,IList<T2>>>.ConsumeMessage(System.Threading.Tasks.Dataflow.DataflowMessageHeader messageHeader, System.Threading.Tasks.Dataflow.ITargetBlock<Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>> target, out bool messageConsumed);
abstract member System.Threading.Tasks.Dataflow.ISourceBlock<System.Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>>.ConsumeMessage : System.Threading.Tasks.Dataflow.DataflowMessageHeader * System.Threading.Tasks.Dataflow.ITargetBlock<System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2>> * bool -> System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2>
override this.System.Threading.Tasks.Dataflow.ISourceBlock<System.Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>>.ConsumeMessage : System.Threading.Tasks.Dataflow.DataflowMessageHeader * System.Threading.Tasks.Dataflow.ITargetBlock<System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2>> * bool -> System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2>
Function ConsumeMessage (messageHeader As DataflowMessageHeader, target As ITargetBlock(Of Tuple(Of IList(Of T1), IList(Of T2))), ByRef messageConsumed As Boolean) As Tuple(Of IList(Of T1), IList(Of T2)) Implements ISourceBlock(Of Tuple(Of IList(Of T1), IList(Of T2))).ConsumeMessage
Parâmetros
- messageHeader
- DataflowMessageHeader
A DataflowMessageHeader mensagem que deve ser consumida.
- target
- ITargetBlock<Tuple<IList<T1>,IList<T2>>>
A ITargetBlock<TInput> mensagem para a qual a mensagem deve ser consumida.
- messageConsumed
- Boolean
true se a mensagem fosse consumida com sucesso.
false caso contrário.
Devoluções
O valor da mensagem consumida. Isto pode corresponder a uma instância diferente DataflowMessageHeader daquela que foi anteriormente reservada e passada como messageHeader a deste método. O consumidor ITargetBlock<TInput> deve usar o valor devolvido em vez do valor passado como messageValue para OfferMessage(DataflowMessageHeader, TInput, ISourceBlock<TInput>, Boolean). Se a mensagem solicitada não estiver disponível, o valor de retorno é null (Nothing em Visual Basic).
Implementações
Exceções
O messageHeader não é válido.
O target é null (Nada em Visual Basic).
Observações
A ITargetBlock<TInput> mensagem para a qual a mensagem deve ser consumida não precisa de estar ligada a partir desta ISourceBlock<TOutput> instância. Além disso, este ISourceBlock<TOutput> caso pode nunca ter oferecido a mensagem diretamente ao ITargetBlock<TInput>.