Show / Hide Table of Contents

    Class ShardSetsBase<TShard, TConfiguration>

    The ShardSets collection contains any number of ShardSets. This class is used by provider specific implementations. It is unlikely that you would reference this in consumer code. Classes that inherit from this class manage sharded database connections.

    Inheritance
    System.Object
    ShardSetsBase<TShard, TConfiguration>
    Implements
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ArgentSea
    Assembly: ArgentSea.dll
    Syntax
    public abstract class ShardSetsBase<TShard, TConfiguration> : ICollection, IEnumerable where TShard : IComparable where TConfiguration : class, IShardSetsConfigurationOptions<TShard>, new()
    Type Parameters
    Name Description
    TShard

    The type of the ShardId.

    TConfiguration

    A provider-specific implementation of IShardSetConfigurationOptions.

    Constructors

    | Improve this Doc View Source

    ShardSetsBase(IOptions<TConfiguration>, IDataProviderServiceFactory, DataConnectionConfigurationBase, ILogger<ShardSetsBase<TShard, TConfiguration>>)

    Declaration
    public ShardSetsBase(IOptions<TConfiguration> configOptions, IDataProviderServiceFactory dataProviderServices, DataConnectionConfigurationBase globalConfiguration, ILogger<ShardSetsBase<TShard, TConfiguration>> logger)
    Parameters
    Type Name Description
    Microsoft.Extensions.Options.IOptions<TConfiguration> configOptions
    IDataProviderServiceFactory dataProviderServices
    DataConnectionConfigurationBase globalConfiguration
    Microsoft.Extensions.Logging.ILogger<ShardSetsBase<TShard, TConfiguration>> logger

    Properties

    | Improve this Doc View Source

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    IsSynchronized

    Declaration
    public bool IsSynchronized { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Item[String]

    Declaration
    public ShardSetsBase<TShard, TConfiguration>.ShardSet this[string key] { get; }
    Parameters
    Type Name Description
    System.String key
    Property Value
    Type Description
    ShardSetsBase.ShardSet<>
    | Improve this Doc View Source

    SyncRoot

    Declaration
    public object SyncRoot { get; }
    Property Value
    Type Description
    System.Object

    Methods

    | Improve this Doc View Source

    CopyTo(Array, Int32)

    Declaration
    public void CopyTo(Array array, int index)
    Parameters
    Type Name Description
    System.Array array
    System.Int32 index
    | Improve this Doc View Source

    GetEnumerator()

    Declaration
    public IEnumerator GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Implements

    System.Collections.ICollection
    System.Collections.IEnumerable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX