Interface IVectorizationServiceFactory<T>
- Namespace
 - FoundationaLLM.Vectorization.Interfaces
 
- Assembly
 - FoundationaLLM.Vectorization.Engine.dll
 
Creates typed service instances.
public interface IVectorizationServiceFactory<T>
  Type Parameters
T
- Extension Methods
 
Methods
GetService(string, UnifiedUserIdentity)
Retrieves a service instance of type T specified by name.
Task<T> 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<T>
 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).
Task<(T 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<(T Service, ResourceBase Resource)>
 The service instance and its associated resource object (if any).