-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIMessageProcessingInformation.cs
More file actions
50 lines (45 loc) · 1.75 KB
/
IMessageProcessingInformation.cs
File metadata and controls
50 lines (45 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using System;
using System.Collections.Generic;
namespace RapidField.SolidInstruments.Messaging
{
/// <summary>
/// Represents instructions and contextual information relating to processing for an <see cref="IMessageBase" />.
/// </summary>
public interface IMessageProcessingInformation
{
/// <summary>
/// Gets the number of times that processing has been attempted for the associated message, or zero if processing has not
/// yet been attempted.
/// </summary>
public Int32 AttemptCount
{
get;
}
/// <summary>
/// Gets an ordered collection of processing attempt results for the associated message, or an empty collection if
/// processing has not yet been attempted.
/// </summary>
public List<MessageProcessingAttemptResult> AttemptResults
{
get;
}
/// <summary>
/// Gets or sets instructions that guide failure behavior for the listener.
/// </summary>
public MessageListeningFailurePolicy FailurePolicy
{
get;
set;
}
/// <summary>
/// Gets a value indicating whether or not the associated message has been processed successfully.
/// </summary>
public Boolean IsSuccessfullyProcessed
{
get;
}
}
}