Show / Hide Table of Contents

    Class CorrelationId

    Inheritance
    System.Object
    CorrelationId
    Implements
    ICorrelationId
    System.IEquatable<ICorrelationId>
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Catalyst.Core.Lib.IO.Messaging.Correlation
    Assembly: Catalyst.Core.Lib.dll
    Syntax
    public sealed class CorrelationId : ICorrelationId, IEquatable<ICorrelationId>

    Constructors

    | Improve this Doc View Source

    CorrelationId(ByteString)

    Provides a correlation Id from a protobuf byte string.

    Declaration
    public CorrelationId(ByteString byteString)
    Parameters
    Type Name Description
    ByteString byteString
    | Improve this Doc View Source

    CorrelationId(Byte[])

    Provides a correlation Id from a byte array.

    Declaration
    public CorrelationId(byte[] bytes)
    Parameters
    Type Name Description
    System.Byte[] bytes
    | Improve this Doc View Source

    CorrelationId(Guid)

    Provide a known correlation Id.

    Declaration
    public CorrelationId(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Fields

    | Improve this Doc View Source

    GuidByteLength

    Length of the inner Guid in bytes

    Declaration
    public static readonly int GuidByteLength
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Id

    Declaration
    public Guid Id { get; }
    Property Value
    Type Description
    System.Guid

    Methods

    | Improve this Doc View Source

    Equals(ICorrelationId)

    Declaration
    public bool Equals(ICorrelationId other)
    Parameters
    Type Name Description
    ICorrelationId other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GenerateCorrelationId()

    Static helper to get new CorrelationId.

    Declaration
    public static ICorrelationId GenerateCorrelationId()
    Returns
    Type Description
    ICorrelationId
    | Improve this Doc View Source

    GenerateEmptyCorrelationId()

    Static helper to get empty correlation id

    Declaration
    public static ICorrelationId GenerateEmptyCorrelationId()
    Returns
    Type Description
    ICorrelationId
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Operators

    | Improve this Doc View Source

    Equality(CorrelationId, CorrelationId)

    Declaration
    public static bool operator ==(CorrelationId left, CorrelationId right)
    Parameters
    Type Name Description
    CorrelationId left
    CorrelationId right
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(CorrelationId, CorrelationId)

    Declaration
    public static bool operator !=(CorrelationId left, CorrelationId right)
    Parameters
    Type Name Description
    CorrelationId left
    CorrelationId right
    Returns
    Type Description
    System.Boolean

    Implements

    ICorrelationId
    System.IEquatable<T>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network