public CekResiService( IOptionsSnapshot <BinderByteConfig> binderByteConfig, CacheService cacheService, QueryService queryService ) { _binderByteConfig = binderByteConfig.Value; _cacheService = cacheService; _queryService = queryService; }
public BinderByteService( IOptionsSnapshot <BinderByteConfig> binderByteConfig, ILogger <BinderByteService> logger, CacheService cacheService, QueryService queryService ) { _binderByteConfig = binderByteConfig.Value; _logger = logger; _cacheService = cacheService; _queryService = queryService; (_isEnabled, _apiUrl, _apiToken) = binderByteConfig.Value; }