Class AddToSequenceResult
Encapsulates the result of the AddAsync(IRawInboundEnvelope, ISequence?, bool) method.
Implements
Inherited Members
Namespace: Silverback.Messaging.Sequences
Assembly: Silverback.Integration.dll
Syntax
public record AddToSequenceResult : IEquatable<AddToSequenceResult>
Constructors
| Improve this doc View sourceAddToSequenceResult(bool, int)
Initializes a new instance of the AddToSequenceResult class.
Declaration
public AddToSequenceResult(bool isSuccess, int pushedStreamsCount)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isSuccess | A value indicating whether the operation was successful or not. |
| int | 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?, bool).
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; init; }
Property Value
| Type | Description |
|---|---|
| bool |
PushedStreamsCount
Gets the number of streams that have been actually pushed.
Declaration
public int PushedStreamsCount { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Improve this doc View sourceSuccess(int)
Returns a new instance representing a successful call to AddAsync(IRawInboundEnvelope, ISequence?, bool).
Declaration
public static AddToSequenceResult Success(int pushedStreams)
Parameters
| Type | Name | Description |
|---|---|---|
| int | pushedStreams | The number of streams that have been actually pushed. |
Returns
| Type | Description |
|---|---|
| AddToSequenceResult | The AddToSequenceResult. |