internal MessageHandler(long marketId, IPositionCache cache, IMessageBus messageBus, ILogger <MessageHandler> logger) { _cache = cache; _logger = logger; _messageBus = messageBus; MarketId = marketId; }
public UpdatesManager(IMessageBus messageBus, ILogger <UpdatesManager> logger, ILogger <MessageHandler> loggerHandler, DatafeedHttpService datafeedHttpService, IPositionCache cache) { _messageBus = messageBus; _logger = logger; _loggerHandler = loggerHandler; _datafeedHttpService = datafeedHttpService; _cache = cache; _sessionId = Guid.NewGuid().ToString(); _logger.LogInformation("sessionId {0} , assigned to UpdatesManager", _sessionId); }
public PositionManager(IPositionRepository positionRepository, IMessageBus messageBus, IPositionCache positionCache, IUpdatesManager updatesManager, ITraderInfoManager traderInfoManager) { _positionRepository = positionRepository; _messageBus = messageBus; _positionCache = positionCache; _updatesManager = updatesManager; _traderInfoManager = traderInfoManager; }
public CacheDataHandler(IInstrumentCache instrumentCache, IOrderBookCache orderBookCache, IPositionCache positionCache, IOrderCache orderCache, ILogger <CacheDataHandler> logger) { _instrumentCache = instrumentCache; _orderBookCache = orderBookCache; _positionCache = positionCache; _orderCache = orderCache; _logger = logger; }
public CommandExecutionService(IPositionRequestService positionRequestService, IOrderRequestService orderRequestService, IPositionCache positionCache, IOrderCache orderCache, ICommandStore commandStore, ILogger <CommandExecutionService> logger) { _positionRequestService = positionRequestService; _orderRequestService = orderRequestService; _positionCache = positionCache; _orderCache = orderCache; _commandStore = commandStore; _logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="PositionViewModel"/> class. /// </summary> /// <param name="unitOfWork">Unit of work.</param> /// <param name="viewModelBuilder">View model builder.</param> /// <param name="viewBuilder">View builder.</param> /// <param name="messageBoxProvider">Message box provider.</param> /// <param name="positionCache">Position cache.</param> public PositionViewModel( IUnitOfWork unitOfWork, IViewModelBuilder viewModelBuilder, IViewBuilder viewBuilder, IMessageBoxProvider messageBoxProvider, IPositionCache positionCache) { this.unitOfWork = unitOfWork; this.viewModelBuilder = viewModelBuilder; this.viewBuilder = viewBuilder; this.messageBoxProvider = messageBoxProvider; this.positionCache = positionCache; Task.Factory.StartNewWithDefaultCulture(this.UpdateData); }
/// <summary> /// Initializes a new instance of the <see cref="StaffDialogViewModel"/> class. /// </summary> /// <param name="unitOfWork">Unit of work.</param> /// <param name="messageBoxProvider">Message box provider.</param> /// <param name="genderCache">Gender cache.</param> /// <param name="positionCache">Position cache.</param> /// <param name="educationCache">Education cache.</param> /// <param name="mode">Mode (Add/Edit).</param> /// <param name="model">Staff model.</param> public StaffDialogViewModel( IUnitOfWork unitOfWork, IMessageBoxProvider messageBoxProvider, IGenderCache genderCache, IPositionCache positionCache, IEducationCache educationCache, WorkModeType mode, StaffModel model = null) : base(mode) { this.unitOfWork = unitOfWork; this.messageBoxProvider = messageBoxProvider; this.genderCache = genderCache; this.positionCache = positionCache; this.educationCache = educationCache; Task.Factory.StartNewWithDefaultCulture(() => this.Load(model)); }
public ViewRepository(IPositionCache positionCache, IPriceCache priceCache) { _positionCache = positionCache; _priceCache = priceCache; }