コード例 #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);
        }
コード例 #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;
                    }
                }
            }
        }
コード例 #3
0
 internal InternalOutputStream(PluggableProtocolResponse response)
 {
     this.response=response;                
 }
コード例 #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;
                    }
                }
            }
        }
コード例 #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);
        }
コード例 #6
0
 internal InternalOutputStream(PluggableProtocolResponse response)
 {
     this.response = response;
 }