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); }
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; } } } }
internal InternalOutputStream(PluggableProtocolResponse response) { this.response=response; }
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; } } } }
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; }