Show / Hide Table of Contents

    Class MessageHeader

    An header added to the message being sent over a message broker.

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

    Constructors

    | Improve this doc View source

    MessageHeader(string, object?)

    Initializes a new instance of the MessageHeader class.

    Declaration
    public MessageHeader(string name, object? value)
    Parameters
    Type Name Description
    string name

    The header name.

    object value

    The header value.

    | Improve this doc View source

    MessageHeader(string, string?)

    Initializes a new instance of the MessageHeader class.

    Declaration
    [JsonConstructor]
    public MessageHeader(string name, string? value)
    Parameters
    Type Name Description
    string name

    The header name.

    string value

    The header value.

    Properties

    | Improve this doc View source

    Name

    Gets or sets the header name.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string
    | Improve this doc View source

    Value

    Gets or sets the header value.

    Declaration
    public string? Value { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Improve this doc View source

    Equals(MessageHeader?)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(MessageHeader? other)
    Parameters
    Type Name Description
    MessageHeader 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()

    Operators

    | Improve this doc View source

    operator ==(MessageHeader?, MessageHeader?)

    An header added to the message being sent over a message broker.

    Declaration
    public static bool operator ==(MessageHeader? left, MessageHeader? right)
    Parameters
    Type Name Description
    MessageHeader left
    MessageHeader right
    Returns
    Type Description
    bool
    | Improve this doc View source

    operator !=(MessageHeader?, MessageHeader?)

    An header added to the message being sent over a message broker.

    Declaration
    public static bool operator !=(MessageHeader? left, MessageHeader? right)
    Parameters
    Type Name Description
    MessageHeader left
    MessageHeader right
    Returns
    Type Description
    bool

    Implements

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