Beispiel #1
0
        public CourtListService(IConfiguration configuration, ILogger <CourtListService> logger, FileServicesClient filesClient, IMapper mapper, LookupService lookupService, LocationService locationService, IAppCache cache, ClaimsPrincipal user)
        {
            _logger      = logger;
            _filesClient = filesClient;
            _filesClient.JsonSerializerSettings.ContractResolver = new SafeContractResolver {
                NamingStrategy = new CamelCaseNamingStrategy()
            };
            _cache = cache;
            _cache.DefaultCachePolicy.DefaultCacheDurationSeconds = int.Parse(configuration.GetNonEmptyValue("Caching:FileExpiryMinutes")) * 60;
            _mapper = mapper;

            _lookupService             = lookupService;
            _locationService           = locationService;
            _applicationCode           = user.ApplicationCode();
            _requestAgencyIdentifierId = user.AgencyCode();
            _requestPartId             = user.ParticipantId();
        }