RandomSelector Class

Definition

Select a random true triggerHandler implementation of IRuleSelector.

public class RandomSelector : Microsoft.Bot.Builder.Dialogs.Adaptive.TriggerSelector
type RandomSelector = class
    inherit TriggerSelector
Public Class RandomSelector
Inherits TriggerSelector
Inheritance
RandomSelector

Constructors

Name Description
RandomSelector()

Fields

Name Description
Kind

Class identifier.

Properties

Name Description
Seed

Gets or sets optional seed for random number generator.

Methods

Name Description
Initialize(IEnumerable<OnCondition>, Boolean)

Initializes the selector with the set of rules.

SelectAsync(ActionContext, CancellationToken)

Selects the best rule to execute.

Applies to