Documentation
Table of Contents

Class SpecialistServiceOptions

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

What AddIntentSharpSpecialist(IServiceCollection, Action<SpecialistServiceOptions>?) registers, set in its configure callback. Every part left null is taken from the container.

public sealed class SpecialistServiceOptions
Inheritance
object
SpecialistServiceOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

SpecialistServiceOptions()

Creates options that take everything from the container and register no router, no change handler and no settings.

Properties

AddChangeHandler

True registers a SpecialistChangeHandler as a singleton and as an IEnvironmentChangeHandler, so the client AddIntentSharp builds runs it, and has it watch the runtime. Default false.

AddGuardrailDeclarations

True registers the specialist settings (Settings) as SettingDescriptor services and the specialist subjects (Subjects) as SubjectDescriptor services. The client AddIntentSharp builds declares the settings, so the settings document can set them, and the rule file source of the Guardrails package's AddGuardrails takes both, so a rule file's settings: block can set the settings and its rules can name the subjects. Default false.

AddRouter

True registers a SpecialistRouter as a singleton, gives it to the runtime, and adds it to the client AddIntentSharp builds with AddNamedProvider, so the client reaches it by name only: it never becomes the primary provider or part of a chain the client makes up itself, whatever else is registered. Default false: every offer must name a provider configured on the client.

RouterName

The router's provider name when AddRouter is true. Null uses DefaultName.

Service

The specialist service. Null takes the ISpecialistService registered in the container, which is then required.

Specialist

The runtime's settings. Default: new options with the defaults. The context sources, fit evaluators and not-fit handler registered in the container are added to them when the runtime is created (see AddIntentSharpSpecialist(IServiceCollection, Action<SpecialistServiceOptions>?)).

Store

The store. Null takes the ISpecialistStore registered in the container, else a new InMemorySpecialistStore.