DataflowMessageStatus 枚举

定义

表示在数据流块间传递时 DataflowMessageHeader的状态。Represents the status of a DataflowMessageHeader when passed between dataflow blocks.

public enum class DataflowMessageStatus
public enum DataflowMessageStatus
type DataflowMessageStatus = 
Public Enum DataflowMessageStatus
继承
DataflowMessageStatus

字段

Accepted 0

指示 ITargetBlock<TInput> 接受了消息。Indicates that the ITargetBlock<TInput> accepted the message. 一旦目标已接受消息,它将全部归目标所有。Once a target has accepted a message, it is wholly owned by the target.

Declined 1

指示 ITargetBlock<TInput> 拒绝了消息。Indicates that the ITargetBlock<TInput> declined the message. ISourceBlock<TOutput> 仍然拥有该消息。The ISourceBlock<TOutput> still owns the message.

DecliningPermanently 4

指示 ITargetBlock<TInput> 拒绝了消息。Indicates that the ITargetBlock<TInput> declined the message. ISourceBlock<TOutput> 仍然拥有该消息。The ISourceBlock<TOutput> still owns the message.

此外,ITargetBlock<TInput> 将拒绝源发送的所有将来消息。Additionally, the ITargetBlock<TInput> will decline all future messages sent by the source.

NotAvailable 3

指示 ITargetBlock<TInput> 试图接收来自 ISourceBlock<TOutput> 的消息,但该消息不再可用。Indicates that the ITargetBlock<TInput> tried to accept the message from the ISourceBlock<TOutput>, but the message was no longer available.

Postponed 2

指示 ITargetBlock<TInput> 因稍后的潜在能耗推迟了消息。Indicates that the ITargetBlock<TInput> postponed the message for potential consumption at a later time.

ISourceBlock<TOutput> 仍然拥有该消息。The ISourceBlock<TOutput> still owns the message.

注解

备注

TPL 数据流库(System.Threading.Tasks.Dataflow 命名空间)不随 .NET 一起分发。The TPL Dataflow Library (the System.Threading.Tasks.Dataflow namespace) is not distributed with .NET. 若要在 Visual Studio 中安装 System.Threading.Tasks.Dataflow 命名空间,请打开项目,选择“项目” 菜单中的“管理 NuGet 包” ,再在线搜索 System.Threading.Tasks.Dataflow 包。To install the System.Threading.Tasks.Dataflow namespace in Visual Studio, open your project, choose Manage NuGet Packages from the Project menu, and search online for the System.Threading.Tasks.Dataflow package. 或者,若要使用 .NET Core CLI 进行安装,请运行 dotnet add package System.Threading.Tasks.DataflowAlternatively, to install it using the .NET Core CLI, run dotnet add package System.Threading.Tasks.Dataflow.

适用于