Share via


RegexMatchScorable<InnerState,InnerScore> Class

Definition

Scorable to represent a regular expression match against an activity's text.

[System.Serializable]
public sealed class RegexMatchScorable<InnerState,InnerScore> : Microsoft.Bot.Builder.Scorables.Internals.ResolverScorable<Microsoft.Bot.Builder.Scorables.Internals.RegexMatchScorable<InnerState,InnerScore>.Scope,System.Text.RegularExpressions.Match,InnerState,InnerScore>
[<System.Serializable>]
type RegexMatchScorable<'InnerState, 'InnerScore> = class
    inherit ResolverScorable<RegexMatchScorable<'InnerState, 'InnerScore>.Scope, Match, 'InnerState, 'InnerScore>
Public NotInheritable Class RegexMatchScorable(Of InnerState, InnerScore)
Inherits ResolverScorable(Of RegexMatchScorable(Of InnerState, InnerScore).Scope, Match, InnerState, InnerScore)

Type Parameters

InnerState
InnerScore
Inheritance
ScorableBase<OuterItem,OuterState,OuterScore>
ScorableAggregator<IResolver,OuterState,OuterScore,IResolver,InnerState,InnerScore>
ResolverScorable<RegexMatchScorable<InnerState,InnerScore>.Scope,Match,InnerState,InnerScore>
RegexMatchScorable<InnerState,InnerScore>
Attributes

Constructors

RegexMatchScorable<InnerState,InnerScore>(Regex, IScorable<IResolver,InnerScore>)

Fields

inner (Inherited from ResolverScorable<OuterState,OuterScore,InnerState,InnerScore>)

Methods

DoneAsync(OuterItem, OuterState, CancellationToken) (Inherited from ScorableAggregator<OuterItem,OuterState,OuterScore,InnerItem,InnerState,InnerScore>)
GetScore(Item, State) (Inherited from ScorableBase<Item,State,Score>)
HasScore(OuterItem, OuterState) (Inherited from ScorableAggregator<OuterItem,OuterState,OuterScore,InnerItem,InnerState,InnerScore>)
PostAsync(OuterItem, OuterState, CancellationToken) (Inherited from ScorableAggregator<OuterItem,OuterState,OuterScore,InnerItem,InnerState,InnerScore>)
PrepareAsync(Item, CancellationToken) (Inherited from ScorableBase<Item,State,Score>)
ToString()

Explicit Interface Implementations

IScorable<Item,Score>.DoneAsync(Item, Object, CancellationToken) (Inherited from ScorableBase<Item,State,Score>)
IScorable<Item,Score>.GetScore(Item, Object) (Inherited from ScorableBase<Item,State,Score>)
IScorable<Item,Score>.HasScore(Item, Object) (Inherited from ScorableBase<Item,State,Score>)
IScorable<Item,Score>.PostAsync(Item, Object, CancellationToken) (Inherited from ScorableBase<Item,State,Score>)
IScorable<Item,Score>.PrepareAsync(Item, CancellationToken) (Inherited from ScorableBase<Item,State,Score>)

Extension Methods

SelectItem<SourceItem,TargetItem,Score>(IScorable<TargetItem,Score>, Func<SourceItem,TargetItem>)

Project the item of a scorable using a lambda expression.

SelectScore<Item,SourceScore,TargetScore>(IScorable<Item,SourceScore>, Func<Item,SourceScore,TargetScore>)

Project the score of a scorable using a lambda expression.

TryPostAsync<Item,Score>(IScorable<Item,Score>, Item, CancellationToken)

Invoke the scorable calling protocol against a single scorable.

WhereScore<Item,Score>(IScorable<Item,Score>, Func<Item,Score,Boolean>)

Applies to