17.36. Class SessionProvider

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

public class SessionProvider : IInitializable, IHealthCheckProvider

17.36.1. Inheritance

objectSessionProvider

17.36.2. Implements

IInitializable, IHealthCheckProvider

17.36.3. Inherited Members

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

17.36.4. Constructors

17.36.4.1. SessionProvider(IMongoClient)

[UsedImplicitly]
public SessionProvider(IMongoClient client)

17.36.4.1.1. Parameters

client IMongoClient

17.36.5. Methods

17.36.5.1. Check(HealthCheckTag)

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

public Task<HealthCheckResult> Check(HealthCheckTag tag)

17.36.5.1.1. Parameters

tag HealthCheckTag

Health check for which the class has to answer.

17.36.5.1.2. Returns

Task<HealthCheckResult>

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

17.36.5.2. Get()

public IClientSessionHandle Get()

17.36.5.2.1. Returns

IClientSessionHandle

17.36.5.3. Init(CancellationToken)

Executes an initialization process for the class

public Task Init(CancellationToken cancellationToken)

17.36.5.3.1. Parameters

cancellationToken CancellationToken

Token used to cancel the execution of the method

17.36.5.3.2. Returns

Task

Task representing the asynchronous execution of the method