Språk

AdaptiveDialog.OnSetScopedServices(DialogContext) Metod

Definition

OnSetScopedServices ger möjlighet att ställa in scoped services för den aktuella dialogContext.

protected virtual void OnSetScopedServices(Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext);
abstract member OnSetScopedServices : Microsoft.Bot.Builder.Dialogs.DialogContext -> unit
override this.OnSetScopedServices : Microsoft.Bot.Builder.Dialogs.DialogContext -> unit
Protected Overridable Sub OnSetScopedServices (dialogContext As DialogContext)

Parametrar

dialogContext
DialogContext

dialog Kontext.

Kommentarer

Använd dialogContext.Services.Set(object) för att sätta ett scoped objekt som kommer att ärvas av alla barndialogContexts.

Gäller för