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

RandomSelector()

Fields

Kind

Class identifier.

Properties

Seed

Gets or sets optional seed for random number generator.

Methods

Initialize(IEnumerable<OnCondition>, Boolean)

Initializes the selector with the set of rules.

SelectAsync(ActionContext, CancellationToken)

Selects the best rule to execute.

Applies to