Method AddIntentSharpSpecialist
- Namespace
- IntentSharp.Specialist
- Assembly
- IntentSharp.Specialist.dll
AddIntentSharpSpecialist(IServiceCollection, Action<SpecialistServiceOptions>?)
Registers a singleton SpecialistRuntime. It takes the IntentClient and the
IIntentCatalog from the container (both required), the service and the store from
configure or the container, the validator and type registries, a TimeProvider and
a logger when the container has them. Every ISpecialistContextSource and IFitEvaluator
registered in the container is added after the ones the options list, and a registered INotFitHandler
is used when the options set none. The first registration wins.
public static IServiceCollection AddIntentSharpSpecialist(this IServiceCollection services, Action<SpecialistServiceOptions>? configure = null)
Parameters
servicesIServiceCollectionThe service collection.
configureAction<SpecialistServiceOptions>Sets what to register. Null registers the runtime with the defaults.
Returns
- IServiceCollection
The service collection, so calls can be chained.
Exceptions
- ArgumentNullException
servicesis null.