Exemplo n.º 1
0
        public async Task <CodecInformation> GetCodecInformationBySipAddress(string sipAddress)
        {
            var ci = await _cache.GetOrAdd(
                CacheKeys.CodecInformation(sipAddress),
                () => _ccmRepository.GetCodecInformation(sipAddress),
                DateTime.Now.AddSeconds(_reloadIntervalInSeconds));

            return(ci);
        }