Beispiel #1
0
 public TradesController()
 {
     if (_tradeProvider == null)
     {
         _tradeProvider = new TradeProvider();
     }
 }
Beispiel #2
0
 public TradeMiddleware(RequestDelegate next, ILogger <TradeMiddleware> logger, TradeProvider tradeProvider)
 {
     _next          = next ?? throw new ArgumentNullException(nameof(next));
     _logger        = logger;
     _tradeProvider = tradeProvider;
 }