Exemplo n.º 1
0
 public LocationController(ILocationRepository locationManager,
                           IRegionRepository regionRepository,
                           ICityRepository cityRepository,
                           IProfileGroupRepository profileGroupRepository)
 {
     _locationRepository     = locationManager;
     _regionRepository       = regionRepository;
     _cityRepository         = cityRepository;
     _profileGroupRepository = profileGroupRepository;
 }
Exemplo n.º 2
0
        public RegisteredSipsManager(
            IRegisteredSipRepository registeredSipRepository,
            ICallRepository callRepository,
            IUserAgentRepository userAgentRepository,
            ILocationRepository locationRepository,
            IProfileGroupRepository profileGroupRepository,
            ISettingsManager settingsManager)
        {
            _registeredSipRepository = registeredSipRepository;
            _callRepository          = callRepository;
            _userAgentRepository     = userAgentRepository;
            _locationRepository      = locationRepository;
            _profileGroupRepository  = profileGroupRepository;

            _settingsManager = settingsManager;
        }
Exemplo n.º 3
0
        public CallEndedTests()
        {
            var settingsManager         = new SettingsManager(new SettingsRepository(new CachingService()));
            var locationManager         = new LocationManager(new LocationRepository(new CachingService()));
            var sipAccountManager       = new SipAccountManager(new SipAccountRepository(new CachingService()));
            var metaRepository          = new MetaRepository(new CachingService());
            var locationRepository      = new LocationRepository(new CachingService());
            var userAgentRepository     = new UserAgentRepository(new CachingService());
            var registeredSipRepository = new RegisteredSipRepository(settingsManager, locationManager, metaRepository, userAgentRepository, sipAccountManager, new CachingService());

            _registeredSipRepository = new CachedRegisteredSipRepository(new CachingService(), registeredSipRepository);

            var profileGroupRepository = new ProfileGroupRepository(new CachingService());

            _profileGroupRepository = new CachedProfileGroupRepository(new CachingService(), profileGroupRepository);
            _kamailioMessageManager = new KamailioMessageManager(
                _registeredSipRepository,
                new CachedCallRepository(
                    new CachingService(),
                    new CallRepository(new CallHistoryRepository(new CachingService()), settingsManager, new CachingService())
                    )
                );

            _callRepository = new CallRepository(new CallHistoryRepository(new CachingService()), settingsManager, new CachingService());

            _callRepository = new CachedCallRepository(
                new CachingService(),
                new CallRepository(
                    new CallHistoryRepository(new CachingService()),
                    settingsManager,
                    new CachingService()
                    )
                );

            _registeredSipsManager = new RegisteredSipsManager(registeredSipRepository, _callRepository, userAgentRepository, locationRepository, profileGroupRepository, settingsManager);
        }
Exemplo n.º 4
0
 public ProfileGroupController(IProfileGroupRepository profileGroupRepository, IProfileRepository profileRepository)
 {
     _profileGroupRepository = profileGroupRepository;
     _profileRepository      = profileRepository;
 }
 public CachedProfileGroupRepository(IAppCache lazyCache, IProfileGroupRepository internalRepository)
 {
     _lazyCache          = lazyCache;
     _internalRepository = internalRepository;
 }