Exemple #1
0
 public DemoMemberService(ICustomerModule customerApi, IDemoSearch demoSearchApi, IStorefrontMemoryCache memoryCache, IApiChangesWatcher apiChangesWatcher)
     : base(customerApi, memoryCache, apiChangesWatcher)
 {
     _customerApi       = customerApi;
     _demoSearchApi     = demoSearchApi;
     _memoryCache       = memoryCache;
     _apiChangesWatcher = apiChangesWatcher;
 }
 public MemberService(ICustomerModule customerApi, ICustomerOrderService orderService,
                      IQuoteService quoteService, ISubscriptionService subscriptionService, IMemoryCache memoryCache)
 {
     _customerApi         = customerApi;
     _orderService        = orderService;
     _quoteService        = quoteService;
     _memoryCache         = memoryCache;
     _subscriptionService = subscriptionService;
 }
 public MemberService(ICustomerModule customerApi, ICustomerOrderService orderService,
                      IQuoteService quoteService, ISubscriptionService subscriptionService, IMemoryCache memoryCache, IApiChangesWatcher changesWatcher)
 {
     _customerApi         = customerApi;
     _orderService        = orderService;
     _quoteService        = quoteService;
     _memoryCache         = memoryCache;
     _subscriptionService = subscriptionService;
     _apiChangesWatcher   = changesWatcher;
 }
        public AuthDialog(
            IAuthorizationService authService,
            ICustomerModule customerModule,
            ConversationState conversationState,
            MainDialog mainDialog
            )
            : base(nameof(AuthDialog))
        {
            _authorizationService = authService;
            _conversationState    = conversationState;
            _customerModule       = customerModule;

            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(mainDialog);

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                AuthPlease,
                TryToAuth
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Exemple #5
0
 public DemoMemberService(ICustomerModule customerApi, IStorefrontMemoryCache memoryCache, IApiChangesWatcher changesWatcher)
     : base(customerApi, memoryCache, changesWatcher)
 {
     _customerApi = customerApi;
 }
 public CustomersControllerV1(ICustomerModule customerModule) => this.customerModule = customerModule;
 public MemberService(ICustomerModule customerApi, IStorefrontMemoryCache memoryCache, IApiChangesWatcher changesWatcher)
 {
     _customerApi       = customerApi;
     _memoryCache       = memoryCache;
     _apiChangesWatcher = changesWatcher;
 }
Exemple #8
0
 public SgbDomain(IEnvironmentAdapter environmentAdapter, ICustomerModule customerModule, IAccountModule accountModule)
 {
     _environmentAdapter = environmentAdapter;
     _customerModule     = customerModule;
     _accountModule      = accountModule;
 }
 public AuthorizationService(ICustomerModule customerModule, IStoreModule storeModule)
 {
     _customerModuleApi = customerModule;
     _storeModule       = storeModule;
 }
Exemple #10
0
 public CustomerDialog(ICustomerModule customerModule, ILogger <MainDialog> logger)
 {
     this.customerModule = customerModule ?? throw new ArgumentNullException(nameof(customerModule));
     this.logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 /// <summary>
 ///   Creates a new repository of customers.
 /// </summary>
 public CustomerRepository(ICustomerModule config)
 {
     _customers = LoadCustomers(config.CustomerDataFile);
 }
Exemple #12
0
 public Module(IAccountUnitOfWork accountUnitOfWork, ICustomerModule customerModule)
 {
     _accountUnitOfWork = accountUnitOfWork;
     CustomerModule     = customerModule;
 }
 public CustomersController(ICustomerModule customerModule, IMapper mapper)
 {
     this.customerModule = customerModule;
     this.mapper         = mapper;
 }