Class AddToSequenceResult
Encapsulates the result of the AddAsync(IRawInboundEnvelope, ISequence, Boolean) method.
Inheritance
System.Object
AddToSequenceResult
Implements
System.IEquatable<AddToSequenceResult>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Silverback.Messaging.Sequences
Assembly: Silverback.Integration.dll
Syntax
public class AddToSequenceResult : IEquatable<AddToSequenceResult>
Constructors
| Improve this doc View sourceAddToSequenceResult(Boolean, Int32)
Initializes a new instance of the AddToSequenceResult class.
Declaration
public AddToSequenceResult(bool isSuccess, int pushedStreamsCount)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isSuccess | A value indicating whether the operation was successful or not. |
System.Int32 | pushedStreamsCount | The number of streams that have been actually pushed. |
Properties
| Improve this doc View sourceFailed
Gets a static instance representing a failed call to AddAsync(IRawInboundEnvelope, ISequence, Boolean).
Declaration
public static AddToSequenceResult Failed { get; }
Property Value
Type | Description |
---|---|
AddToSequenceResult |
IsSuccess
Gets a value indicating whether the operation was successful or not.
Declaration
public bool IsSuccess { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PushedStreamsCount
Gets the number of streams that have been actually pushed.
Declaration
public int PushedStreamsCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this doc View sourceSuccess(Int32)
Returns a new instance representing a successful call to AddAsync(IRawInboundEnvelope, ISequence, Boolean).
Declaration
public static AddToSequenceResult Success(int pushedStreams)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pushedStreams | The number of streams that have been actually pushed. |
Returns
Type | Description |
---|---|
AddToSequenceResult | The AddToSequenceResult. |
Implements
System.IEquatable<T>