-
Notifications
You must be signed in to change notification settings - Fork 36
/
SequenceAbortReason.cs
42 lines (36 loc) · 1.18 KB
/
SequenceAbortReason.cs
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
// Copyright (c) 2020 Sergio Aquilini
// This code is licensed under MIT license (see LICENSE file for details)
namespace Silverback.Messaging.Sequences
{
/// <summary>
/// The possible reasons for a sequence to be aborted.
/// </summary>
public enum SequenceAbortReason
{
/// <summary>
/// The sequence isn't aborted.
/// </summary>
None = 0,
/// <summary>
/// The subscriber prematurely exited the enumeration loop.
/// </summary>
EnumerationAborted = 1,
/// <summary>
/// The sequence was incomplete.
/// </summary>
IncompleteSequence = 2,
/// <summary>
/// The consumer aborted the sequence because it is disconnecting (or rebalancing).
/// </summary>
ConsumerAborted = 3,
/// <summary>
/// The sequence is being disposed before it could complete.
/// </summary>
Disposing = 4,
/// <summary>
/// The sequence was aborted because of an exception thrown either by the consumer pipeline or the
/// subscriber.
/// </summary>
Error = 5
}
}