21.36. Class SessionProvider

Namespace: ArmoniK.Core.Adapters.MongoDB.Common
Assembly: ArmoniK.Core.Adapters.MongoDB.dll

public class SessionProvider : IInitializable, IHealthCheckProvider

21.36.1. Inheritance

objectSessionProvider

21.36.2. Implements

IInitializable, IHealthCheckProvider

21.36.3. Inherited Members

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

21.36.4. Constructors

21.36.4.1. SessionProvider(IMongoClient)

[UsedImplicitly]
public SessionProvider(IMongoClient client)

21.36.4.1.1. Parameters

client IMongoClient

21.36.5. Methods

21.36.5.1. Check(HealthCheckTag)

Checks the status of a class for the given health check type.

public Task<HealthCheckResult> Check(HealthCheckTag tag)

21.36.5.1.1. Parameters

tag HealthCheckTag

Health check for which the class has to answer.

21.36.5.1.2. Returns

Task<HealthCheckResult>

The result of the check containing the status of the class for the health check type.

21.36.5.2. Get()

public IClientSessionHandle Get()

21.36.5.2.1. Returns

IClientSessionHandle

21.36.5.3. Init(CancellationToken)

Executes an initialization process for the class

public Task Init(CancellationToken cancellationToken)

21.36.5.3.1. Parameters

cancellationToken CancellationToken

Token used to cancel the execution of the method

21.36.5.3.2. Returns

Task

Task representing the asynchronous execution of the method