Beispiel #1
0
        public DefaultSipUserAgent(IBasicApiProvider basicApi, IEventsProvider eventsProvider, LoggingConfig loggingConfig,
                                   IContainer container)
        {
            Helper.GuardNotNull(basicApi);
            Helper.GuardNotNull(eventsProvider);
            Helper.GuardNotNull(loggingConfig);
            Helper.GuardNotNull(container);
            _basicApi      = basicApi;
            _loggingConfig = loggingConfig;
            _container     = container;

            eventsProvider.Subscribe <LogRequested>(OnLog);
        }
        public DefaultSipUserAgent(IBasicApiProvider basicApi, IEventsProvider eventsProvider, LoggingConfig loggingConfig, 
            IContainer container)
        {
            Helper.GuardNotNull(basicApi);
            Helper.GuardNotNull(eventsProvider);
            Helper.GuardNotNull(loggingConfig);
            Helper.GuardNotNull(container);
            _basicApi = basicApi;
            _loggingConfig = loggingConfig;
            _container = container;
            _loggingConfig = loggingConfig;

            eventsProvider.Subscribe<LogRequested>(OnLog);
        }
        public DefaultSipUserAgent(IBasicApiProvider basicApi, IEventsProvider eventsProvider, 
            ILocalRegistry localRegistry, IContainer container)
        {
            Helper.GuardNotNull(basicApi);
            Helper.GuardNotNull(eventsProvider);
            Helper.GuardNotNull(localRegistry);
            Helper.GuardNotNull(container);
            _basicApi = basicApi;
            _localRegistry = localRegistry;
            _container = container;
            _eventsProvider = eventsProvider;

            _eventsProvider.Subscribe<LogRequested>(e => OnLog(e));
        }
        public DefaultSipUserAgent(IBasicApiProvider basicApi, IEventsProvider eventsProvider,
                                   ILocalRegistry localRegistry, IContainer container)
        {
            Helper.GuardNotNull(basicApi);
            Helper.GuardNotNull(eventsProvider);
            Helper.GuardNotNull(localRegistry);
            Helper.GuardNotNull(container);
            _basicApi       = basicApi;
            _localRegistry  = localRegistry;
            _container      = container;
            _eventsProvider = eventsProvider;

            _eventsProvider.Subscribe <LogRequested>(e => OnLog(e));
        }
Beispiel #5
0
        public DefaultCallManager(IObjectFactory objectFactory, ICallApiProvider callApi, IRegistry localRegistry,
                                  IBasicApiProvider basicApi, IMediaApiProvider mediaApi, IEventsProvider eventsProvider, IAccountManagerInternal accMgr)
        {
            Helper.GuardNotNull(objectFactory);
            Helper.GuardNotNull(basicApi);
            Helper.GuardNotNull(callApi);
            Helper.GuardNotNull(mediaApi);
            Helper.GuardNotNull(localRegistry);
            Helper.GuardNotNull(eventsProvider);
            _objectFactory  = objectFactory;
            _accMgr         = accMgr;
            _mediaApi       = mediaApi;
            _eventsProvider = eventsProvider;
            _basicApi       = basicApi;
            _localRegistry  = localRegistry;
            _callApi        = callApi;

            _barrier = new ManualResetEvent(true);
        }
        public DefaultCallManager(IObjectFactory objectFactory, ICallApiProvider callApi, IRegistry localRegistry, 
            IBasicApiProvider basicApi, IMediaApiProvider mediaApi, IEventsProvider eventsProvider, IAccountManagerInternal accMgr)
        {
            Helper.GuardNotNull(objectFactory);
            Helper.GuardNotNull(basicApi);
            Helper.GuardNotNull(callApi);
            Helper.GuardNotNull(mediaApi);
            Helper.GuardNotNull(localRegistry);
            Helper.GuardNotNull(eventsProvider);
            _objectFactory = objectFactory;
            _accMgr = accMgr;
            _mediaApi = mediaApi;
            _eventsProvider = eventsProvider;
            _basicApi = basicApi;
            _localRegistry = localRegistry;
            _callApi = callApi;

            _barrier = new ManualResetEvent(true);
        }