Class IndexingServiceFactory
- Namespace
 - FoundationaLLM.Vectorization.Services.Text
 
- Assembly
 - FoundationaLLM.Vectorization.Engine.dll
 
Creates text splitter service instances.
public class IndexingServiceFactory : IVectorizationServiceFactory<IIndexingService>
  - Inheritance
 - 
      
      IndexingServiceFactory
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Constructors
IndexingServiceFactory(IEnumerable<IResourceProviderService>, IConfiguration, IServiceProvider, ILoggerFactory)
Creates text splitter service instances.
public IndexingServiceFactory(IEnumerable<IResourceProviderService> resourceProviderServices, IConfiguration configuration, IServiceProvider serviceProvider, ILoggerFactory loggerFactory)
  Parameters
resourceProviderServicesIEnumerable<IResourceProviderService>The collection of registered resource providers.
configurationIConfigurationThe global configuration provider.
serviceProviderIServiceProviderThe IServiceProvider providing dependency injection services.
loggerFactoryILoggerFactoryThe logger factory used to create loggers.
Methods
GetService(string, UnifiedUserIdentity)
Retrieves a service instance of type T specified by name.
public Task<IIndexingService> GetService(string serviceName, UnifiedUserIdentity userIdentity)
  Parameters
serviceNamestringThe name of the service instance to create.
userIdentityUnifiedUserIdentityThe UnifiedUserIdentity providing information about the calling user identity.
Returns
- Task<IIndexingService>
 The service instance created by name.
GetServiceWithResource(string, UnifiedUserIdentity)
Retrieves a service instance of type T specified by name and its associated resource object (if any).
public Task<(IIndexingService Service, ResourceBase Resource)> GetServiceWithResource(string serviceName, UnifiedUserIdentity userIdentity)
  Parameters
serviceNamestringThe name of the service instance to create.
userIdentityUnifiedUserIdentityThe UnifiedUserIdentity providing information about the calling user identity.
Returns
- Task<(IIndexingService Service, ResourceBase Resource)>
 The service instance and its associated resource object (if any).