21.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

21.60.1. Inheritance

objectShardingExt

21.60.2. Inherited Members

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

21.60.3. Methods

21.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)

21.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.

21.60.3.1.2. Returns

Task