Esempio n. 1
0
        public async Task UpdateRoutesCacheAsync()
        {
            var routes = await _routesApi.List();

            if (routes != null)
            {
                _routesCacheService.InitCache(
                    routes.Select(r => _convertService.Convert <MatchingEngineRouteContract, MatchingEngineRoute>(r)));
            }
        }
Esempio n. 2
0
        public async Task UpdateRoutesCacheAsync()
        {
            var routes = await _repository.GetAllRoutesAsync();

            _routesCacheService.InitCache(routes);
        }