23.55. Class ShardingExt

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

Extension of to shard collections

public static class ShardingExt

23.55.1. Inheritance

objectShardingExt

23.55.2. Inherited Members

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

23.55.3. Methods

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

23.55.3.1.1. Parameters

sessionHandle IClientSessionHandle

Handle to the client session.

options MongoDB

Options of MongoDB.

collectionName string

Name of the collection to shard.

23.55.3.1.2. Returns

Task