Documentation
Table of Contents

Class SpecialistServiceCollectionExtensions

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

Registers a SpecialistRuntime with a service collection, beside AddIntentSharp and the Catalog's AddIntentCatalog:

services.AddIntentSharp(configuration);
services.AddIntentCatalog("intents");
services.AddSingleton<ISpecialistService, MySpecialistService>();
services.AddIntentSharpSpecialist(o => o.AddRouter = true);
public static class SpecialistServiceCollectionExtensions
Inheritance
object
SpecialistServiceCollectionExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

Methods

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.