Share via


DatabaseLogFormatter.Closed Method

Definition

Called after Close() is invoked. The default implementation of this method filters by DbContext set into Context, if any, and then logs the event.

public virtual void Closed (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext interceptionContext);
abstract member Closed : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext -> unit
override this.Closed : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext -> unit
Public Overridable Sub Closed (connection As DbConnection, interceptionContext As DbConnectionInterceptionContext)

Parameters

connection
DbConnection

The connection that was closed.

interceptionContext
DbConnectionInterceptionContext

Contextual information associated with the call.

Implements

Applies to