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(); }
private IExecutionsStorage CreateExecutionsStorageProxy(IExecutionsStorage executionsStorage) { return new ExecutionsStorageProxy(executionsStorage, this.dispatcher); }