Class ChunkSettings
The chunking settings. To enable chunking just set the Size property to the desired (maximum)
chunk size.
Inherited Members
Namespace: Silverback.Messaging.Sequences.Chunking
Assembly: Silverback.Integration.dll
Syntax
public sealed class ChunkSettings : IEquatable<ChunkSettings>, IValidatableEndpointSettings
Properties
| Improve this doc View sourceAlwaysAddHeaders
Gets or sets a value indicating whether the x-chunk-index and related headers have to be added
to the produced message in any case, even if its size doesn't exceed the single chunk size. The
default is true. This setting is ignored if chunking is disabled (Size is not
set).
Declaration
public bool AlwaysAddHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Size
Gets or sets the size in bytes of each chunk. The default is MaxValue, meaning that chunking is disabled.
Declaration
public int Size { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Improve this doc View sourceEquals(ChunkSettings?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ChunkSettings? other)
Parameters
| Type | Name | Description |
|---|---|---|
| ChunkSettings | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Improve this doc View sourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Improve this doc View sourceValidate()
Throws an EndpointConfigurationException if the current configuration is not valid.
Declaration
public void Validate()