public LimitOrderService(ILogger <LimitOrderService> logger, MapperConfiguration mapperConfiguration, IWebSocketClientFactory webSocketClientFactory, IGrapheneConfig grapheneConfig) { _grapheneConfig = grapheneConfig; _logger = logger; _mapper = mapperConfiguration.CreateMapper(); _webSocketClientFactory = webSocketClientFactory; _lstCreds = new List <CliCredential>() { new CliCredential() { Url = _grapheneConfig.GrapheneWalletWs, Username = "******", Password = "******" }, new CliCredential() { Url = _grapheneConfig.GrapheneBlockchainWs, Username = "******", Password = "******" } }; }
public AssetService(ILogger <AssetService> logger, MapperConfiguration mapperConfiguration, IWebSocketClientFactory webSocketClientFactory, IGrapheneConfig gConfig) { _logger = logger; _mapper = mapperConfiguration.CreateMapper(); _webSocketClientFactory = webSocketClientFactory; _gConfig = gConfig; _lstCreds = new List <CliCredential>() { new CliCredential() { Url = _gConfig.GrapheneWalletWs, Username = "", Password = "" }, new CliCredential() { Url = _gConfig.GrapheneBlockchainWs, Username = "", Password = "" } }; }
public GrapheneWitnessNotifier(IWebSocketClientFactory wsClientFact, IGrapheneConfig grapheneConfig) { _wsClientFact = wsClientFact; _grapheneConfig = grapheneConfig; }