public DaemonClient GetDaemonClient(CoinType coin)
        {
            DaemonClient coinClient = null;

            _coinClientMap.TryGetValue(coin, out coinClient);
            return(coinClient);
        }
        public DaemonClientFactory(IContextHolder contextHolder, JsonSerializerSettings jsonSerializerSettings)
        {
            _coinClientMap = new ConcurrentDictionary <CoinType, DaemonClient>();

            if (null != contextHolder.Config.Coins && contextHolder.Config.Coins.Length > 0)
            {
                foreach (CoinConfig config in contextHolder.Config.Coins)
                {
                    DaemonClient coinClient = new DaemonClient(jsonSerializerSettings, config.WalletPassword);
                    coinClient.Configure(config.Daemons);
                    _coinClientMap[config.Type] = coinClient;
                }
            }
        }