public MainProcess(ISipMessageCore sipMessageCore, MessageHub messageHub, ISIPRegistrarCore sipRegistrarCore) { _mainSipService = sipMessageCore; messageCenter = messageHub; registry = sipRegistrarCore; // _serviceProvider = services.BuildServiceProvider(); }
public MessageHub(ISipMessageCore sipCoreMessageService, ISIPMonitorCore sIPMonitorCore, ISIPRegistrarCore sipRegistrarCore) { _sipCoreMessageService = sipCoreMessageService; _sIPMonitorCore = sIPMonitorCore; _registrarCore = sipRegistrarCore; _registrarCore.DeviceAlarmSubscribe += OnDeviceAlarmSubscribeReceived; _registrarCore.RPCDmsRegisterReceived += _sipRegistrarCore_RPCDmsRegisterReceived; }
// public SIPMessageCore(IServiceCollection serviceCollection) public SIPMessageCore( ISIPRegistrarCore sipRegistrarCore, ISIPTransport sipTransport, ISipAccountStorage sipAccountStorage, IMemoCache <Camera> cameraCache) { _registrarCore = sipRegistrarCore; _transport = sipTransport; _sipAccountStorage = sipAccountStorage; _LocalSipAccount = _sipAccountStorage.GetLocalSipAccout(); // Configure the SIP transport layer. _transport.SIPTransportRequestReceived += AddMessageRequest; _transport.SIPTransportResponseReceived += AddMessageResponse; _cameraCache = cameraCache; _cameraCache.OnItemAdded += _cameraCache_OnItemAdded; }
public DeviceManageImpl(ISIPRegistrarCore sipRegistrarCore) { _sipRegistrarCore = sipRegistrarCore; //_sipRegistrarCore.RPCDmsRegisterReceived += _sipRegistrarCore_RPCDmsRegisterReceived; }