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