Show / Hide Table of Contents

    Struct DataOrigin

    This object help descript the “type” of data. For example, you could assign Customer data a data origin value of 'c'. When comparing data values, the ShardKey/ShardChild will not match if the data origin is not the same value — even if IDs are the same. This helps prevent accidentaly comparisions that are not valid and also prevents collisions if you choose allows values of different types to be stored in the same cache.

    Implements
    System.IEquatable<System.Object>
    Inherited Members
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: ArgentSea
    Assembly: ArgentSea.dll
    Syntax
    public struct DataOrigin : IEquatable<object>

    Constructors

    | Improve this Doc View Source

    DataOrigin(Char)

    Declaration
    public DataOrigin(char sourceIndicator)
    Parameters
    Type Name Description
    System.Char sourceIndicator

    Properties

    | Improve this Doc View Source

    SourceIndicator

    Declaration
    public char SourceIndicator { get; }
    Property Value
    Type Description
    System.Char

    Methods

    | Improve this Doc View Source

    Equals(Object)

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

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    Operators

    | Improve this Doc View Source

    Equality(DataOrigin, DataOrigin)

    Declaration
    public static bool operator ==(DataOrigin do1, DataOrigin do2)
    Parameters
    Type Name Description
    DataOrigin do1
    DataOrigin do2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(DataOrigin, DataOrigin)

    Declaration
    public static bool operator !=(DataOrigin do1, DataOrigin do2)
    Parameters
    Type Name Description
    DataOrigin do1
    DataOrigin do2
    Returns
    Type Description
    System.Boolean

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • DataOrigin(Char)
    • Properties
      • SourceIndicator
    • Methods
      • Equals(Object)
      • GetHashCode()
    • Operators
      • Equality(DataOrigin, DataOrigin)
      • Inequality(DataOrigin, DataOrigin)
    • Implements
    Back to top Generated by DocFX