Documentation
Table of Contents

Constructor DelegateContextSource

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

DelegateContextSource(Func<IntentDefinition, CancellationToken, ValueTask<IReadOnlyList<SpecialistContextItem>>>)

Creates the source.

public DelegateContextSource(Func<IntentDefinition, CancellationToken, ValueTask<IReadOnlyList<SpecialistContextItem>>> get)

Parameters

get Func<IntentDefinition, CancellationToken, ValueTask<IReadOnlyList<SpecialistContextItem>>>

Returns the items for a requested definition. A null list sends none.

Exceptions

ArgumentNullException

get is null.

DelegateContextSource(Func<IntentDefinition, IReadOnlyList<SpecialistContextItem>>)

Creates the source from a function that returns the items at once.

public DelegateContextSource(Func<IntentDefinition, IReadOnlyList<SpecialistContextItem>> get)

Parameters

get Func<IntentDefinition, IReadOnlyList<SpecialistContextItem>>

Returns the items for a requested definition. A null list sends none.

Exceptions

ArgumentNullException

get is null.