Table of Contents

Class RequestSourcesCache

Namespace
FoundationaLLM.Vectorization.Services.RequestSources
Assembly
FoundationaLLM.Vectorization.Engine.dll

Implements a cache of IRequestSourceService objects as defined by IRequestSourcesCache.

public class RequestSourcesCache : IRequestSourcesCache
Inheritance
RequestSourcesCache
Implements
Inherited Members
Extension Methods

Remarks

Creates a new instance of the cache.

Constructors

RequestSourcesCache(IOptions<VectorizationWorkerSettings>, IConfigurationSection, ILoggerFactory)

Implements a cache of IRequestSourceService objects as defined by IRequestSourcesCache.

public RequestSourcesCache(IOptions<VectorizationWorkerSettings> vectorizationWorkerOptions, IConfigurationSection queuesConfiguration, ILoggerFactory loggerFactory)

Parameters

vectorizationWorkerOptions IOptions<VectorizationWorkerSettings>

The IOptions<TOptions> instance containing the VectorizationWorkerSettings instance.

queuesConfiguration IConfigurationSection

The IConfigurationSection containing settings for the queues.

loggerFactory ILoggerFactory

The ILoggerFactory used to create new loggers for child objects.

Remarks

Creates a new instance of the cache.

Properties

RequestSources

Gets the dictionary of IRequestSourceService objects hashed by request source names.

public Dictionary<string, IRequestSourceService> RequestSources { get; }

Property Value

Dictionary<string, IRequestSourceService>