public AccountRepository(IProfileRepository profileRepository, IProfileFactory profileFactory, IAccountPersister accountPersister, IEventAggregator eventAggregator) { _profileRepository = profileRepository; _profileFactory = profileFactory; _accountPersister = accountPersister; _eventAggregator = eventAggregator; }
public PendingStockActions(IStockPriceProvider priceProvider, IAccountLocator accountLocator, IAccountPersister accountPersister) { this.priceProvider = priceProvider; this.accountLocator = accountLocator; this.accountPersister = accountPersister; this.hubContext = GlobalHost.ConnectionManager.GetHubContext<StockTraderHub>(); this.pendingActions = new List<PendingAction>(); this.pendingActionsTimer = new Timer(this.PendingActionsCallback, null, TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(3)); }