public CryptoHostedService(IOptions <EnvironmentConfig> options, IPushManager pushManager, ICryptoApi cryptoApi, IClusterClient clusterClient, IHubContext <ApplicationHub> hubContext, ITradersManager tradersManager) { _options = options; _pushManager = pushManager; _cryptoApi = cryptoApi; _clusterClient = clusterClient; _tradersManager = tradersManager; _hubNotifier = new HubNotifier(hubContext); _cryptoApi.Initialize(options.Value.BittrexApiKey, options.Value.BittrexApiSecret, options.Value.TestMode, true); }
public TradersController(IOptions <EnvironmentConfig> options, IClusterClient clusterClient, ICryptoApi cryptoApi, ITradersManager tradersManager) { _clusterClient = clusterClient; _tradersManager = tradersManager; }