public DialogTaskManagerBotDataLoader(IBotData inner, IDialogTaskManager dialogTaskManager, IActivity activity, ILocaleFinder localeFinder) { SetField.NotNull(out this.inner, nameof(inner), inner); SetField.NotNull(out this.dialogTaskManager, nameof(dialogTaskManager), dialogTaskManager); SetField.NotNull(out this.localeFinder, nameof(localeFinder), localeFinder); SetField.NotNull(out this.activity, nameof(activity), activity); }
async Task IDialogTaskManager.LoadDialogTasks(CancellationToken token) { if (this.dialogTasks == null) { // load all dialog tasks. By default it loads/creates the default dialog task // which will be used by ReactiveDialogTask this.dialogTasks = new List <DialogTask>(); do { IDialogTaskManager dialogTaskManager = this; dialogTaskManager.CreateDialogTask(); } while ( this.botData.PrivateConversationData.ContainsKey(this.GetCurrentTaskBlobKey(this.dialogTasks.Count))); } }
public DialogTaskManagerBotDataLoader(IBotData inner, IDialogTaskManager dialogTaskManager) { SetField.NotNull(out this.inner, nameof(inner), inner); SetField.NotNull(out this.dialogTaskManager, nameof(dialogTaskManager), dialogTaskManager); }