/// <summary> /// Default constructor. /// </summary> /// <param name="stack">Reference to SIP stack.</param> /// <exception cref="ArgumentNullException">Is raised when <b>sipStack</b> is null.</exception> public SIP_ProxyCore(SIP_Stack stack) { if (stack == null) { throw new ArgumentNullException("stack"); } m_pStack = stack; m_pStack.RequestReceived += m_pStack_RequestReceived; m_pStack.ResponseReceived += m_pStack_ResponseReceived; m_pRegistrar = new SIP_Registrar(this); m_pB2BUA = new SIP_B2BUA(this); m_Opaque = Auth_HttpDigest.CreateOpaque(); m_pProxyContexts = new List <SIP_ProxyContext>(); }
/// <summary> /// Cleans up any resources being used. /// </summary> public void Dispose() { if (m_IsDisposed) { return; } m_IsDisposed = true; if (m_pStack != null) { m_pStack.Dispose(); m_pStack = null; } m_pRegistrar = null; m_pB2BUA = null; m_pProxyContexts = null; }
/// <summary> /// Cleans up any resources being used. /// </summary> public void Dispose() { if (m_IsDisposed) { return; } m_IsDisposed = true; if (m_pStack != null) { m_pStack.Dispose(); m_pStack = null; } m_pRegistrar = null; m_pB2BUA = null; m_pProxyContexts = null; }
/// <summary> /// Default constructor. /// </summary> /// <param name="stack">Reference to SIP stack.</param> /// <exception cref="ArgumentNullException">Is raised when <b>sipStack</b> is null.</exception> public SIP_ProxyCore(SIP_Stack stack) { if (stack == null) { throw new ArgumentNullException("stack"); } m_pStack = stack; m_pStack.RequestReceived += m_pStack_RequestReceived; m_pStack.ResponseReceived += m_pStack_ResponseReceived; m_pRegistrar = new SIP_Registrar(this); m_pB2BUA = new SIP_B2BUA(this); m_Opaque = Auth_HttpDigest.CreateOpaque(); m_pProxyContexts = new List<SIP_ProxyContext>(); }