21.44. Class ServiceCollectionExt

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

Provides extension methods for configuring MongoDB components in the service collection.

public static class ServiceCollectionExt

21.44.1. Inheritance

objectServiceCollectionExt

21.44.2. Inherited Members

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

21.44.3. Methods

21.44.3.1. AddClientSubmitterAuthServices(IServiceCollection, ConfigurationManager, out AuthenticationCache)

Add the authentication service to the service collection

[PublicAPI]
public static IServiceCollection AddClientSubmitterAuthServices(this IServiceCollection services, ConfigurationManager configuration, out AuthenticationCache authCache)

21.44.3.1.1. Parameters

services IServiceCollection

Services

configuration ConfigurationManager

Configuration

authCache AuthenticationCache

Created authentication cache

21.44.3.1.2. Returns

IServiceCollection

Services

21.44.3.2. AddClientSubmitterAuthenticationStorage(IServiceCollection, ConfigurationManager)

Add the storage provider for the client authentication system to the service collection

[PublicAPI]
public static IServiceCollection AddClientSubmitterAuthenticationStorage(this IServiceCollection services, ConfigurationManager configuration)

21.44.3.2.1. Parameters

services IServiceCollection

Services

configuration ConfigurationManager

Configuration

21.44.3.2.2. Returns

IServiceCollection

Services

21.44.3.3. AddMongoClient(IServiceCollection, ConfigurationManager, ILogger)

Adds a MongoDB client to the specified service collection.

public static IServiceCollection AddMongoClient(this IServiceCollection services, ConfigurationManager configuration, ILogger logger)

21.44.3.3.1. Parameters

services IServiceCollection

The service collection to which the MongoDB client will be added.

configuration ConfigurationManager

The configuration manager used to retrieve MongoDB settings.

logger ILogger

The logger instance used for logging purposes.

21.44.3.3.2. Returns

IServiceCollection

The updated service collection with the MongoDB client added.

21.44.3.4. AddMongoComponents(IServiceCollection, ConfigurationManager, ILogger)

Adds MongoDB components to the specified service collection. This method configures the MongoDB client and storage services based on the provided configuration.

[PublicAPI]
public static IServiceCollection AddMongoComponents(this IServiceCollection services, ConfigurationManager configuration, ILogger logger)

21.44.3.4.1. Parameters

services IServiceCollection

The service collection to which the MongoDB components will be added.

configuration ConfigurationManager

The configuration manager used to retrieve MongoDB settings.

logger ILogger

The logger instance used for logging purposes.

21.44.3.4.2. Returns

IServiceCollection

The updated service collection with MongoDB components added.

21.44.3.5. AddMongoStorages(IServiceCollection, ConfigurationManager, ILogger)

Adds MongoDB storage services to the specified service collection.

[PublicAPI]
public static IServiceCollection AddMongoStorages(this IServiceCollection services, ConfigurationManager configuration, ILogger logger)

21.44.3.5.1. Parameters

services IServiceCollection

The service collection to which the MongoDB storage services will be added.

configuration ConfigurationManager

The configuration manager used to retrieve MongoDB settings.

logger ILogger

The logger instance used for logging purposes.

21.44.3.5.2. Returns

IServiceCollection

The updated service collection with MongoDB storage services added.