本文整理汇总了C#中IOrderRepository类的典型用法代码示例。如果您正苦于以下问题:C# IOrderRepository类的具体用法?C# IOrderRepository怎么用?C# IOrderRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IOrderRepository类属于命名空间,在下文中一共展示了IOrderRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OrderMediator
public OrderMediator(IOrderRepository orderRepository,
Action<OrderMatch, FixSessionID> orderMatchCallback)
{
_orderRepository = orderRepository;
_orderMatchCallback = orderMatchCallback;
_orderRepository.OrdersMatched += OnOrdersMatched;
}
示例2: ImportService
public ImportService(IImportRepository importRepository, IAssetService blobProvider, ICatalogRepository catalogRepository, IOrderRepository orderRepository, IAppConfigRepository appConfigRepository, IRepositoryFactory<IAppConfigRepository> appConfigRepositoryFactory)
{
_orderRepository = orderRepository;
_catalogRepository = catalogRepository;
_importJobRepository = importRepository;
_appConfigRepository = appConfigRepository;
_appConfigRepositoryFactory = appConfigRepositoryFactory;
_assetProvider = blobProvider;
_entityImporters = new List<IEntityImporter>
{
new ItemImporter() { Name = "Product"},
new ItemImporter() { Name = "Sku"},
new ItemImporter() { Name = "Bundle"},
new ItemImporter() { Name = "DynamicKit"},
new ItemImporter() { Name = "Package"},
new PriceImporter(_catalogRepository),
new AssociationImporter(_catalogRepository),
new RelationImporter(_catalogRepository),
new CategoryImporter(),
new LocalizationImporter(),
new TaxValueImporter(),
new ItemAssetImporter(),
new TaxCategoryImporter(),
new JurisdictionImporter(),
new JurisdictionGroupImporter(),
new SeoImporter()
};
_importResults = new Dictionary<string, ImportResult>();
}
示例3: OrderApiService
public OrderApiService(
ICommandHandler<MakeOrderCommand> commmHandler,
IOrderRepository repository)
{
_commmHandler = commmHandler;
_repository = repository;
}
示例4: CustomerController
public CustomerController(ICustomerRepository customerRepository, INotificationProvider notificationProvider, IOrderRepository ordersRepository, ILogger logger)
{
_customerRepository = customerRepository;
_notificationProvider = notificationProvider;
_ordersRepository = ordersRepository;
_logger = logger;
}
示例5: CheckoutSummaryPageViewModel
public CheckoutSummaryPageViewModel(INavigationService navigationService,
IOrderService orderService,
IOrderRepository orderRepository,
IShippingMethodService shippingMethodService,
ICheckoutDataRepository checkoutDataRepository,
IShoppingCartRepository shoppingCartRepository,
IAccountService accountService,
IResourceLoader resourceLoader,
IAlertMessageService alertMessageService,
ISignInUserControlViewModel signInUserControlViewModel)
{
_navigationService = navigationService;
_orderService = orderService;
_orderRepository = orderRepository;
_shippingMethodService = shippingMethodService;
_checkoutDataRepository = checkoutDataRepository;
_shoppingCartRepository = shoppingCartRepository;
_resourceLoader = resourceLoader;
_accountService = accountService;
_alertMessageService = alertMessageService;
_signInUserControlViewModel = signInUserControlViewModel;
SubmitCommand = DelegateCommand.FromAsyncHandler(SubmitAsync, CanSubmit);
EditCheckoutDataCommand = new DelegateCommand(EditCheckoutData);
SelectCheckoutDataCommand = new DelegateCommand(async () => await SelectCheckoutDataAsync());
AddCheckoutDataCommand = new DelegateCommand(AddCheckoutData);
}
示例6: OrderClient
public OrderClient(IOrderStateController stateController, IOrderRepository orderRepository,
ICacheRepository cacheRepository)
{
_stateController = stateController;
_orderRepository = orderRepository;
_cacheRepository = cacheRepository;
}
示例7: AlertService
public AlertService(IOrderRepository orderRepository, IInstrumentRepository instrumentRepository, IAlertRepository alertRepository, IAlertManager alertManager )
{
_orderRepository = orderRepository;
_instrumentRepository = instrumentRepository;
_alertRepository = alertRepository;
_alertManager = alertManager;
}
示例8: CartService
public CartService(
IProductService productService,
IPricingService pricingService,
IOrderFactory orderFactory,
CustomerContextFacade customerContext,
IPlacedPriceProcessor placedPriceProcessor,
IInventoryProcessor inventoryProcessor,
ILineItemValidator lineItemValidator,
IOrderRepository orderRepository,
IPromotionEngine promotionEngine,
IAddressBookService addressBookService,
ICurrentMarket currentMarket,
ICurrencyService currencyService)
{
_productService = productService;
_pricingService = pricingService;
_orderFactory = orderFactory;
_customerContext = customerContext;
_placedPriceProcessor = placedPriceProcessor;
_inventoryProcessor = inventoryProcessor;
_lineItemValidator = lineItemValidator;
_promotionEngine = promotionEngine;
_orderRepository = orderRepository;
_addressBookService = addressBookService;
_currentMarket = currentMarket;
_currencyService = currencyService;
}
示例9: ShoppingCartPageViewModel
public ShoppingCartPageViewModel(IShoppingCartRepository shoppingCartRepository,
INavigationService navigationService,
IAccountService accountService,
ISignInUserControlViewModel signInUserControlViewModel,
IResourceLoader resourceLoader,
IAlertMessageService alertMessageService,
ICheckoutDataRepository checkoutDataRepository,
IOrderRepository orderRepository,
IEventAggregator eventAggregator)
{
_shoppingCartRepository = shoppingCartRepository;
_navigationService = navigationService;
_accountService = accountService;
_signInUserControlViewModel = signInUserControlViewModel;
_resourceLoader = resourceLoader;
_alertMessageService = alertMessageService;
_checkoutDataRepository = checkoutDataRepository;
_orderRepository = orderRepository;
CheckoutCommand = DelegateCommand.FromAsyncHandler(CheckoutAsync, CanCheckout);
RemoveCommand = DelegateCommand<ShoppingCartItemViewModel>.FromAsyncHandler(Remove);
IncrementCountCommand = DelegateCommand.FromAsyncHandler(IncrementCount);
DecrementCountCommand = DelegateCommand.FromAsyncHandler(DecrementCount, CanDecrementCount);
// Subscribe to the ShoppingCartUpdated event
if (eventAggregator != null)
{
eventAggregator.GetEvent<ShoppingCartUpdatedEvent>().Subscribe(UpdateShoppingCartAsync);
}
}
示例10: OrderRepositoryCacheProxy
public OrderRepositoryCacheProxy(
IOrderRepository innerRepository,
ICache cache)
{
_innerRepository = innerRepository;
_cache = cache;
}
示例11: EmailOrderSubmitter
public EmailOrderSubmitter(string mailTo, IOrderRepository orderRepository, IOrderItemRepository orderItemRepository, IDeliveryRepository deliveryRepository)
{
this.mailTo = mailTo;
this.orderRepository = orderRepository;
this.orderItemRepository = orderItemRepository;
this.deliveryRepository = deliveryRepository;
}
示例12: HomeController
public HomeController(IWaiterRepository waiterRepository, IRestaurantRepository restaurantRepository, IOrderRepository orderRepository, IOrderCreatingRepository orderCreatingRepository)
{
this.waiterRepository = waiterRepository;
this.restaurantRepository = restaurantRepository;
this.orderRepository = orderRepository;
this.orderCreatingRepository = orderCreatingRepository;
}
示例13: OrderControllerService
public OrderControllerService(IOrderRepository orderRepository, ICatalogService catalogService, IOrderRequestService requestService, IShipmentService shipmentService )
{
_orderRepository = orderRepository;
_catalogService = catalogService;
_requestService = requestService;
_shipmentService = shipmentService;
}
示例14: OrderController
public OrderController(ICustomerRepository customerRepository,
IOrderRepository orderRepository)
: base(customerRepository)
{
_orderRepository = orderRepository;
_customerRepository = customerRepository;
}
示例15: OrderService
public OrderService(IOrderRepository orderRepository, ICustomerFactory customerFactory, IEmailService emailService, IOrderSettings orderSettings)
{
_orderRepository = orderRepository;
_customerFactory = customerFactory;
_emailService = emailService;
_orderSettings = orderSettings;
}