예제 #1
0
 public SkillDialog(SkillDialogOptions dialogOptions, ConversationState conversationState)
     : base(nameof(SkillDialog))
 {
     _dialogOptions       = dialogOptions ?? throw new ArgumentNullException(nameof(dialogOptions));
     _conversationState   = conversationState ?? throw new ArgumentNullException(nameof(conversationState));
     _activeSkillProperty = conversationState.CreateProperty <BotFrameworkSkill>($"{typeof(SkillDialog).FullName}.ActiveSkillProperty");
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SkillDialog"/> class to wrap remote calls to a skill.
 /// </summary>
 /// <param name="dialogOptions">The options to execute the skill dialog.</param>
 /// <param name="dialogId">The id of the dialog.</param>
 public SkillDialog(SkillDialogOptions dialogOptions, string dialogId = null)
     : base(dialogId)
 {
     DialogOptions = dialogOptions ?? throw new ArgumentNullException(nameof(dialogOptions));
 }