Show / Hide Table of Contents

    Class ChunkSettings

    The chunking settings. To enable chunking just set the Size property to the desired (maximum) chunk size.

    Inheritance
    object
    ChunkSettings
    Implements
    IEquatable<ChunkSettings>
    IValidatableEndpointSettings
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Sequences.Chunking
    Assembly: Silverback.Integration.dll
    Syntax
    public sealed class ChunkSettings : IEquatable<ChunkSettings>, IValidatableEndpointSettings

    Properties

    | Improve this doc View source

    AlwaysAddHeaders

    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
    | Improve this doc View source

    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 source

    Equals(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 other parameter; otherwise, false.

    | Improve this doc View source

    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
    object.Equals(object)
    | Improve this doc View source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()
    | Improve this doc View source

    Validate()

    Throws an EndpointConfigurationException if the current configuration is not valid.

    Declaration
    public void Validate()

    Implements

    IEquatable<T>
    IValidatableEndpointSettings
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini