Example #1
0
 public StopBuy(IConfiguration configuration, IBotFrameworkHttpAdapter adapter, ConcurrentDictionary <string, ConversationReference> conversationReferences, OrderService orderService, OrderDetailService orderDetailServices, CreateCardService createCardService, PayMentService payMentService)
 {
     _Adapter = adapter;
     _ConversationReferences = conversationReferences;
     _AppId               = configuration["MicrosoftAppId"];
     _OrderService        = orderService;
     _OrderDetailServices = orderDetailServices;
     _CreateCardService   = createCardService;
     _paymentService      = payMentService;
     // 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
     }
 }
Example #2
0
 public EchoBot(ConversationState conversationState, LibraryService libraryService, OrderService orderService, OrderDetailService orderDetailService, UserState userState, T dialog, OrderfoodServices orderfoodServices, ISchedulerFactory schedulerFactory, ConcurrentDictionary <string, ConversationReference> conversationReferences, CreateCardService createCardService, OrganizeStructureService organizeStructureService, PayMentService paymentService, MenuService menuService, MenuDetailService menuDetailService, CustomMenuService customMenuService, MenuOrderService menuOrderService)
 {
     ConversationState         = conversationState;
     UserState                 = userState;
     Dialog                    = dialog;
     _libraryService           = libraryService;
     SchedulerFactory          = schedulerFactory;
     ConversationReferences    = conversationReferences;
     _orderfoodServices        = orderfoodServices;
     _orderService             = orderService;
     _orderDetailService       = orderDetailService;
     _createCardService        = createCardService;
     _organizeStructureService = organizeStructureService;
     _paymentService           = paymentService;
     _menuService              = menuService;
     _menuDetailService        = menuDetailService;
     _customMenuService        = customMenuService;
     _menuOrderService         = menuOrderService;
 }