public AccountProxy(Dispatcher dispatcher, IAccountInternal internalAccount, IOrdersStorage ordersStorage, IExecutionsStorage executionsStorage, IPositionsStorage positionsStorage) { this.dispatcher = dispatcher; this.internalAccount = internalAccount; this.ordersStorage = ordersStorage; this.executionsStorage = executionsStorage; this.positionsStorage = positionsStorage; this.internalAccount.AccountChanged += this.OnAccountChanged; this.accountChangedEvent = this.dispatcher.RegisterEvent(); }
public OrdersStorageProxy(IOrdersStorage ordersStorage, Dispatcher dispatcher, ProxiesFactory proxiesFactory) { Contract.Requires(ordersStorage != null); Contract.Requires(dispatcher != null); Contract.Requires(proxiesFactory != null); this.dispatcher = dispatcher; this.proxiesFactory = proxiesFactory; this.orderAddedEvent = this.dispatcher.RegisterEvent(); ordersStorage.OrderAdded += this.OnOrderAdded; this.orders = ordersStorage.Orders.Select(proxiesFactory.CreateOrderProxy).ToList(); }
private IOrdersStorage CreateOrdersStorageProxy(IOrdersStorage ordersStorage) { return new OrdersStorageProxy(ordersStorage, this.dispatcher, this); }
public OrdersController(IBusPublisher busPublisher, IOrdersStorage storage) : base(busPublisher) { _storage = storage; }
public OrdersController(IOrdersStorage OrdersStorage) { this.OrdersStorage = OrdersStorage; }
/// <summary> /// Initializes a new instance of the <see cref="FifoTradingEngine"/> class. /// </summary> /// <param name="ordersStorage">The orders storage.</param> public FifoTradingEngine(IOrdersStorage ordersStorage) { _ordersStorage = ordersStorage; }
public OrdersController(IOrdersStorage ordersStorage, UserManager <ApplicationUser> userManager, IConfiguration config) { _ordersStorage = ordersStorage; _userManager = userManager; _config = config; }
public OrdersController(IOrdersStorage storage, IBuyerStorage buyerStorage, IEmployeeStorage employeeStorage) { _storage = storage; _buyerStorage = buyerStorage; _employeeStorage = employeeStorage; }
public OrdersMeniController(IOrdersMeniStorage storage, IMenuStorage menuStorage, IOrdersStorage ordersStorage) { _storage = storage; _menuStorage = menuStorage; _ordersStorage = ordersStorage; }