Esempio n. 1
0
 public LykkeAssetsService(ILogFactory logFactory,
                           IAssetPairsReadModelRepository assetPairsService,
                           IAssetsReadModelRepository assetsService,
                           IAssetLinkService assetLinkService)
 {
     _assetPairsService = assetPairsService;
     _assetsService     = assetsService;
     _assetLinkService  = assetLinkService;
     _log = logFactory.CreateLog(this);
 }
        public BalanceService(
            ISettingsService settingsService,
            IAssetLinkService assetLinkService,
            IBalancesClient balancesClient,
            ILogFactory logFactory)
        {
            _cache = new InMemoryCache <Balance>(balance => balance.AssetId, true);

            _settingsService  = settingsService;
            _assetLinkService = assetLinkService;
            _balancesClient   = balancesClient;
            _log = logFactory.CreateLog(this);
        }