Exemple #1
0
 public TraderHostedService(TradeProcessingService tradeProcessingService, IAutoTrader autoTrader)
 {
     _tradeProcessingService = tradeProcessingService ?? throw new ArgumentNullException(nameof(tradeProcessingService));
     _autoTrader             = autoTrader ?? throw new ArgumentNullException(nameof(autoTrader));
 }
Exemple #2
0
 public TraderController(IAutoTrader autoTrader)
 {
     _autoTrader = autoTrader ?? throw new ArgumentNullException(nameof(autoTrader));
 }