private void OnOutOfScope(object s, EventArgs e)
 {
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<sc.SqlContext.OutOfScope|ADV> SqlContext is out of scope\n");
     }
     if (this._pipe != null)
     {
         this._pipe.OnOutOfScope();
     }
     this._triggerContext = null;
 }
Exemplo n.º 2
0
        // Called whenever the context goes out of scope, we need to make
        // sure that we release internal state, such as the pipe's record buffer
        private void OnOutOfScope( object s, EventArgs e ) {
            if (Bid.AdvancedOn) {
                Bid.Trace( "<sc.SqlContext.OutOfScope|ADV> SqlContext is out of scope\n" );
            }

            if ( null != _pipe ) {
                _pipe.OnOutOfScope();
            }

            _triggerContext = null;
        }