22.60. Class ShardingExt

Namespace: ArmoniK.Core.Adapters.MongoDB.Table.DataModel
Assembly: ArmoniK.Core.Adapters.MongoDB.dll

Extension of to shard collections

public static class ShardingExt

22.60.1. Inheritance

objectShardingExt

22.60.2. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

22.60.3. Methods

22.60.3.1. ShardCollection(IClientSessionHandle, MongoDB, string)

Shard a collection using its id as a sharding key.

public static Task ShardCollection(this IClientSessionHandle sessionHandle, MongoDB options, string collectionName)

22.60.3.1.1. Parameters

sessionHandle IClientSessionHandle

Handle to the client session.

options MongoDB

Options of MongoDB.

collectionName string

Name of the collection to shard.

22.60.3.1.2. Returns

Task