示例#1
0
        public IEnumerable <CodecInformationViewModel> GetAll()
        {
            var registeredUserAgents = _registeredSipRepository.GetRegisteredUserAgentsCodecInformation();

            return(registeredUserAgents.Select(x =>
            {
                return new CodecInformationViewModel(
                    sipAddress: x.SipAddress,
                    ip: x.Ip,
                    api: x.Api,
                    gpoNames: x.GpoNames,
                    nrOfInputs: x.NrOfInputs,
                    nrOfGpos: x.NrOfGpos);
            }).ToList());
        }
示例#2
0
 public IEnumerable <RegisteredUserAgentCodecInformation> GetRegisteredUserAgentsCodecInformation()
 {
     return(_lazyCache.GetOrAddRegisteredUserAgentsCodecInformation(() => _internalRepository.GetRegisteredUserAgentsCodecInformation()));
 }