Beispiel #1
0
 public OrderManager(IOrderRepository order,
                     IPositionManager positionManager,
                     IUpdatesManager updatesManager,
                     ITraderInfoManager trader,
                     IMessageBus messageBus)
 {
     _order           = order;
     _positionManager = positionManager;
     _updatesManager  = updatesManager;
     _trader          = trader;
     _messageBus      = messageBus;
 }
Beispiel #2
0
 public PositionManager(IPositionRepository positionRepository,
                        IMessageBus messageBus,
                        IPositionCache positionCache,
                        IUpdatesManager updatesManager,
                        ITraderInfoManager traderInfoManager)
 {
     _positionRepository = positionRepository;
     _messageBus         = messageBus;
     _positionCache      = positionCache;
     _updatesManager     = updatesManager;
     _traderInfoManager  = traderInfoManager;
 }
Beispiel #3
0
        protected override async void OnStartup(StartupEventArgs e)
        {
            Dispatcher.UnhandledException += OnDispatcherUnhandledException;
#if PORTABLE
            _updater = new DefaultUpdatesManager();
#else
            _updater = new SquirrelUpdatesManager();
#endif
            _updater.HandleEvents();

            base.OnStartup(e);
            _logger.Value.Info($"Startup [{Assembly.GetExecutingAssembly().GetName().Version}]");

            await PerformStart();
        }
Beispiel #4
0
 public UPLController(IUpdatesManager updatesManager)
 {
     _updatesManager = _updatesManager;
 }