Ejemplo n.º 1
0
        void Start(
            string szUrl,
            NativeMethods.IInternetProtocolSink pOIProtSink,
            NativeMethods.IInternetBindInfo pOIBindInfo,
            NativeMethods.PI_FLAGS grfPI,
            int dwReserved)
        {
            lock ( sync )
            {
                m_Request = new PluggableProtocolRequest(this, szUrl, pOIBindInfo, grfPI);

                m_Response = new PluggableProtocolResponse(this, pOIProtSink);

                m_Started = true;
            }
            ErrorHandledOnStart(EventArgs.Empty);
        }
Ejemplo n.º 2
0
        protected void Dispose(bool isDisposing)
        {
            GC.SuppressFinalize(this);
            if (isDisposing)
            {
                lock ( sync )
                {
                    if (m_Response != null)
                    {
                        m_Response.Dispose();
                        m_Response = null;
                    }

                    if (m_Request != null)
                    {
                        m_Request.Dispose();
                        m_Request = null;
                    }
                }
            }
        }
Ejemplo n.º 3
0
 internal InternalOutputStream(PluggableProtocolResponse response)
 {
     this.response=response;                
 }
Ejemplo n.º 4
0
        protected void Dispose(bool isDisposing)
        {
            GC.SuppressFinalize(this);
            if( isDisposing )
            {
                lock( sync )
                {
                    if( m_Response!=null )
                    {
                        m_Response.Dispose();
                        m_Response=null;
                    }

                    if( m_Request!=null )
                    {
                        m_Request.Dispose();
                        m_Request=null;
                    }
                }
            }
        }
Ejemplo n.º 5
0
        void Start(
            string szUrl,
            NativeMethods.IInternetProtocolSink pOIProtSink,
            NativeMethods.IInternetBindInfo pOIBindInfo,
            NativeMethods.PI_FLAGS grfPI,
            int dwReserved )
        {
            lock( sync )
            {
                m_Request=new PluggableProtocolRequest( this, szUrl, pOIBindInfo, grfPI );

                m_Response=new PluggableProtocolResponse( this, pOIProtSink );
         
                m_Started=true;
            }
            ErrorHandledOnStart(EventArgs.Empty);
        }
 internal InternalOutputStream(PluggableProtocolResponse response)
 {
     this.response = response;
 }