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); } }
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); } }
// SmiRequestExecutor subclasses must implement all Setters from SmiTypedGetterSetter // SmiRequestExecutor itself does not need to implement these, since it inherits the default implementation from // SmiTypedGetterSetter #endregion #endregion #region Obsolete as of V210 internal virtual SmiEventStream Execute ( SmiConnection connection, // Assigned connection long transactionId, // Assigned transaction CommandBehavior behavior, // CommandBehavior, SmiExecuteType executeType // Type of execute called (NonQuery/Pipe/Reader/Row, etc) ) { // Obsoleting as of V210 // Implement body with throw because there are only a couple of ways to get to this code: // 1) Client is calling this method even though the server negotiated for V210+ (and doesn't implement it). // 2) Server doesn't implement this method, but negotiated V200-. throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); }
internal virtual SmiEventStream Execute ( SmiConnection connection, // Assigned connection long transactionId, // Assigned transaction Transaction associatedTransaction, // SysTx transaction associated with request, if any. CommandBehavior behavior, // CommandBehavior, SmiExecuteType executeType // Type of execute called (NonQuery/Pipe/Reader/Row, etc) ) { // Adding as of V210 // Implement body with throw because there are only a couple of ways to get to this code: // 1) Client is calling this method even though the server negotiated for V200- and hasn't implemented V210 yet. // 2) Server didn't implement V210 on some interface, but negotiated V210+. throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); }
internal virtual SmiEventStream Execute(SmiConnection connection, long transactionId, Transaction associatedTransaction, CommandBehavior behavior, SmiExecuteType executeType) { throw ADP.InternalError(ADP.InternalErrorCode.UnimplementedSMIMethod); }
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); if (Bid.AdvancedOn) { Bid.Trace("<sc.SqlInternalConnectionSmi.ctor|ADV> %d#, constructed new SMI internal connection\n", ObjectID); } }