Exemple #1
0
        private long _length;           // Total length of the stream

        internal SqlSequentialStreamSmi(SmiEventSink_Default sink, ITypedGettersV3 getters, int columnIndex, long length)
        {
            _sink        = sink;
            _getters     = getters;
            _columnIndex = columnIndex;
            _length      = length;
            _position    = 0;
        }
Exemple #2
0
        private int _peekedChar;        // Current peeked character (if any)

        internal SqlSequentialTextReaderSmi(SmiEventSink_Default sink, ITypedGettersV3 getters, int columnIndex, long length)
        {
            _sink        = sink;
            _getters     = getters;
            _columnIndex = columnIndex;
            _length      = length;
            _position    = 0;
            _peekedChar  = -1;
        }
Exemple #3
0
 internal SqlInternalConnectionSmi(SqlConnectionString connectionOptions, SmiContext smiContext) : base(connectionOptions)
 {
     this._smiContext             = smiContext;
     this._smiContext.OutOfScope += new EventHandler(this.OnOutOfScope);
     this._smiConnection          = this._smiContext.ContextConnection;
     this._smiEventSink           = new EventSink(this);
     if (Bid.AdvancedOn)
     {
         Bid.Trace("<sc.SqlInternalConnectionSmi.ctor|ADV> %d#, constructed new SMI internal connection\n", base.ObjectID);
     }
 }
Exemple #4
0
        internal SqlInternalConnectionSmi(SqlConnectionString connectionOptions, SmiContext smiContext) : base(connectionOptions)
        {
            Debug.Assert(null != smiContext, "null smiContext?");

            _smiContext             = smiContext;
            _smiContext.OutOfScope += new EventHandler(OnOutOfScope);

            _smiConnection = _smiContext.ContextConnection;
            Debug.Assert(null != _smiConnection, "null SmiContext.ContextConnection?");

            _smiEventSink = new EventSink(this);
            SqlClientEventSource.Log.AdvanceTrace("<sc.SqlInternalConnectionSmi.ctor|ADV> {0}#, constructed new SMI internal connection", ObjectID);
        }
Exemple #5
0
 /// <summary>
 /// Forces the TextReader to act as if it was closed
 /// This does not actually close the stream, read off the rest of the data or dispose this
 /// </summary>
 internal void SetClosed()
 {
     _sink       = null;
     _getters    = null;
     _peekedChar = -1;
 }
Exemple #6
0
 /// <summary>
 /// Forces the stream to act as if it was closed (i.e. CanRead=false and Read() throws)
 /// This does not actually close the stream, read off the rest of the data or dispose this
 /// </summary>
 internal void SetClosed()
 {
     _sink    = null;
     _getters = null;
 }