コード例 #1
0
 public NotifyController(IOrderHousePaymentService iOrderHousePaymentService,
                         IPreferencesService iPreferencesService,
                         IOrderPaidService iOrderPaidService)
 {
     this.iOrderHousePaymentService = iOrderHousePaymentService;
     this.iPreferencesService       = iPreferencesService;
     this.iOrderPaidService         = iOrderPaidService;
     logger = LogManager.GetCurrentClassLogger();
 }
コード例 #2
0
 public OrderPaidController(IOrderPaidService iOrderPaidService,
                            IEmployeeService iEmployeeService,
                            IMerchantService iMerchantService,
                            IProjectService iProjectService)
 {
     this.iOrderPaidService = iOrderPaidService;
     this.iMerchantService  = iMerchantService;
     this.iEmployeeService  = iEmployeeService;
     this.iProjectService   = iProjectService;
 }
コード例 #3
0
 public TestNotifyController(IAccountPingAnService iAccountPingAnService,
                             IOrderPaidService iOrderPaidService,
                             IMemberService iMemberService,
                             IPingAnOrderPaidService iPingAnOrderPaidService,
                             IPreferencesService iPreferencesService,
                             IPingAnOrderPaidRechargeService iPingAnOrderPaidRechargeService)
 {
     this.iAccountPingAnService           = iAccountPingAnService;
     this.iOrderPaidService               = iOrderPaidService;
     this.iMemberService                  = iMemberService;
     this.iPingAnOrderPaidService         = iPingAnOrderPaidService;
     this.iPreferencesService             = iPreferencesService;
     this.iPingAnOrderPaidRechargeService = iPingAnOrderPaidRechargeService;
 }
コード例 #4
0
 public TestController(IMemberService iMemberManagementService,
                       IOrderBookingService iOrderBookingService,
                       IOrderHousePaymentService iOrderHousePaymentService,
                       IOrderPaidService iOrderPaidService,
                       IAreaGuangDaService iAreaGuangDaService,
                       IPingAnAPIService ipingAnAPIService)
 {
     this.iMemberManagementService  = iMemberManagementService;
     this.iOrderBookingService      = iOrderBookingService;
     this.iOrderHousePaymentService = iOrderHousePaymentService;
     this.iOrderPaidService         = iOrderPaidService;
     this.iAreaGuangDaService       = iAreaGuangDaService;
     this.ipingAnAPIService         = ipingAnAPIService;
 }
コード例 #5
0
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ProductionsContext productionsContext,
                              INewOrderService newOrderService, IOrderPaidService orderPaidService)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseMvc();

            app.UseSwagger();

            app.UseSwaggerUI(c =>
            {
                c.SwaggerEndpoint("/swagger/v1/swagger.json", "GeekBurger Production API V1");
            });

            productionsContext.Seed();

            newOrderService.SubscribeToTopic("NewOrder");
            orderPaidService.SubscribeToTopic("OrderChanged");
        }
コード例 #6
0
 public OrdersRepository(OrdersContext context, IOrderPaidService orderPaidService)
 {
     _context          = context;
     _orderPaidService = orderPaidService;
 }