/// <summary>
 /// 关闭了连接
 /// </summary>
 public override void Closed(DbConnection connection, DbConnectionInterceptionContext interceptionContext)
 {
     base.Closed(connection, interceptionContext);
     Write(Environment.NewLine);
 }
 /// <summary>
 /// Can be implemented in a derived class.
 /// </summary>
 /// <param name="connection">The connection.</param>
 /// <param name="interceptionContext">Contextual information associated with the call.</param>
 /// <seealso cref="IDbConnectionInterceptor.DataSourceGetting"/>
 public virtual void DataSourceGetting(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
 }
示例#3
0
 public void Disposed(DbConnection connection, DbConnectionInterceptionContext interceptionContext)
 {
 }
示例#4
0
 public void StateGot(DbConnection connection, DbConnectionInterceptionContext <ConnectionState> interceptionContext)
 {
 }
示例#5
0
 public void ConnectionStringGot(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
 }
示例#6
0
 public void DatabaseGetting(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
 }
 public void ConnectionStringGot(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
     //throw new NotImplementedException();
     string str = connection.ConnectionString;
 }
 /// <summary>
 /// Can be implemented in a derived class.
 /// </summary>
 /// <param name="connection">The connection.</param>
 /// <param name="interceptionContext">Contextual information associated with the call.</param>
 /// <seealso cref="IDbConnectionInterceptor.StateGetting"/>
 public virtual void StateGetting(DbConnection connection, DbConnectionInterceptionContext <ConnectionState> interceptionContext)
 {
 }
 public void StateGot(DbConnection connection, DbConnectionInterceptionContext <ConnectionState> interceptionContext)
 {
     //throw new NotImplementedException();
 }
 public void Closing(DbConnection connection, DbConnectionInterceptionContext interceptionContext)
 {
     //throw new NotImplementedException();
 }
 public void ServerVersionGot(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
     //throw new NotImplementedException();
 }
示例#12
0
 public override void Closed(DbConnection connection, DbConnectionInterceptionContext interceptionContext)
 {
     //不记录连接关闭信息
 }
示例#13
0
 public override void Opened(DbConnection connection, DbConnectionInterceptionContext interceptionContext)
 {
     //不记录连接打开信息
 }
 /// <summary>
 /// Can be implemented in a derived class.
 /// </summary>
 /// <param name="connection">The connection being opened.</param>
 /// <param name="interceptionContext">Contextual information associated with the call.</param>
 /// <seealso cref="IDbConnectionInterceptor.Opening"/>
 public virtual void Opening(DbConnection connection, DbConnectionInterceptionContext interceptionContext)
 {
 }
 public void ConnectionTimeoutGot(DbConnection connection, DbConnectionInterceptionContext <int> interceptionContext)
 {
     //throw new NotImplementedException();
 }
 /// <summary>
 /// Can be implemented in a derived class.
 /// </summary>
 /// <param name="connection">The connection.</param>
 /// <param name="interceptionContext">Contextual information associated with the call.</param>
 /// <seealso cref="IDbConnectionInterceptor.ServerVersionGetting"/>
 public virtual void ServerVersionGetting(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
 }
 public void DataSourceGot(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
     //throw new NotImplementedException();
 }
示例#18
0
 public void Closing(DbConnection connection, DbConnectionInterceptionContext interceptionContext)
 {
 }
 /// <summary>
 /// Can be implemented in a derived class.
 /// </summary>
 /// <param name="connection">The connection that was closed.</param>
 /// <param name="interceptionContext">Contextual information associated with the call.</param>
 /// <seealso cref="IDbConnectionInterceptor.Closed"/>
 public virtual void Closed(DbConnection connection, DbConnectionInterceptionContext interceptionContext)
 {
 }
示例#20
0
 public void ConnectionTimeoutGot(DbConnection connection, DbConnectionInterceptionContext <int> interceptionContext)
 {
 }
 /// <summary>
 /// Can be implemented in a derived class.
 /// </summary>
 /// <param name="connection">The connection.</param>
 /// <param name="interceptionContext">Contextual information associated with the call.</param>
 /// <seealso cref="IDbConnectionInterceptor.ConnectionStringGetting"/>
 public virtual void ConnectionStringGetting(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
 }
示例#22
0
 public void DataSourceGot(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
 }
 /// <summary>
 /// Can be implemented in a derived class.
 /// </summary>
 /// <param name="connection">The connection.</param>
 /// <param name="interceptionContext">Contextual information associated with the call.</param>
 /// <seealso cref="IDbConnectionInterceptor.ConnectionTimeoutGetting"/>
 public virtual void ConnectionTimeoutGetting(DbConnection connection, DbConnectionInterceptionContext <int> interceptionContext)
 {
 }
示例#24
0
 public void Opened(DbConnection connection, DbConnectionInterceptionContext interceptionContext)
 {
 }
 /// <summary>
 /// Can be implemented in a derived class.
 /// </summary>
 /// <param name="connection">The connection.</param>
 /// <param name="interceptionContext">Contextual information associated with the call.</param>
 /// <seealso cref="IDbConnectionInterceptor.DatabaseGot"/>
 public virtual void DatabaseGot(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
 }
 public void ServerVersionGot(DbConnection connection, DbConnectionInterceptionContext <string> interceptionContext)
 {
 }
示例#27
0
 /// <summary>
 /// Is called when the <paramref name="connection"/> switches to the open state.
 /// </summary>
 /// <param name="connection">The database connection.</param>
 /// <param name="interceptionContext">The interception context.</param>
 public override void Opened(DbConnection connection, DbConnectionInterceptionContext interceptionContext)
 {
     Write(string.Format(_cultureInfoToUse, "Opened db connection at {0}.", DateTime.UtcNow));
 }