// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// DataflowMessageStatus.cs
//
//
// Status about the propagation of a message.
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
namespace System.Threading.Tasks.Dataflow
{
/// Represents the status of a when passed between dataflow blocks.
public enum DataflowMessageStatus
{
///
/// Indicates that the accepted the message. Once a target has accepted a message,
/// it is wholly owned by the target.
///
Accepted = 0x0,
///
/// Indicates that the declined the message. The still owns the message.
///
Declined = 0x1,
///
/// Indicates that the postponed the message for potential consumption at a later time.
/// The still owns the message.
///
Postponed = 0x2,
///
/// Indicates that the tried to accept the message from the , but the
/// message was no longer available.
///
NotAvailable = 0x3,
///
/// Indicates that the declined the message. The still owns the message.
/// Additionally, the will decline all future messages sent by the source.
///
DecliningPermanently = 0x4
}
}