public StartBuy(IConfiguration configuration, IBotFrameworkHttpAdapter adapter, ConcurrentDictionary <string, ConversationReference> conversationReferences, OrderService _orderService, EGRepository <Schedule> _repo) { Adapter = adapter; ConversationReferences = conversationReferences; AppId = configuration["MicrosoftAppId"]; orderService = _orderService; Repo = _repo; // If the channel is the Emulator, and authentication is not in use, // the AppId will be null. We generate a random AppId for this case only. // This is not required for production, since the AppId will have a value. if (string.IsNullOrEmpty(AppId)) { AppId = Guid.NewGuid().ToString(); //if no AppId, use a random Guid } }
public ReservationDialog(UserState userState, AddressDialogs addressDialog, ISchedulerFactory schedulerFactory, EGRepository <Schedule> schedRepo, ConcurrentDictionary <string, ConversationReference> conversationReferences) : base(nameof(ReservationDialog)) { _userProfileAccessor = userState.CreateProperty <Schedule>("Schedule"); _schedulerFactory = schedulerFactory; _schedRepo = schedRepo; _conversationReferences = conversationReferences; var waterfallSteps = new WaterfallStep[] { CreateReservationAdaptive, OrderSourceAdaptive, GetMenuFromSource, StoreMenuData }; AddDialog(new WaterfallDialog(nameof(WaterfallDialog), waterfallSteps)); AddDialog(addressDialog); AddDialog(new TextPrompt("DateTimeInput", DateTimeValidatorAsync)); AddDialog(new TextPrompt(nameof(TextPrompt))); InitialDialogId = nameof(WaterfallDialog); }
public MenuOrderService(EGRepository <MenuOrder> repo, EGRepository <MenuDetail> repoDetail) { _repo = repo; _repoDetail = repoDetail; }
public LibraryService(EGRepository <Library> repo) { _repo = repo; }