次の方法で共有


IDbConnectionInterceptor.ConnectionClosedAsync メソッド

定義

EF が を呼び出した直後に呼び出されます CloseAsync()

public System.Threading.Tasks.Task ConnectionClosedAsync (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEndEventData eventData);
public virtual System.Threading.Tasks.Task ConnectionClosedAsync (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEndEventData eventData);
abstract member ConnectionClosedAsync : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEndEventData -> System.Threading.Tasks.Task
abstract member ConnectionClosedAsync : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEndEventData -> System.Threading.Tasks.Task
override this.ConnectionClosedAsync : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEndEventData -> System.Threading.Tasks.Task
Public Function ConnectionClosedAsync (connection As DbConnection, eventData As ConnectionEndEventData) As Task
Public Overridable Function ConnectionClosedAsync (connection As DbConnection, eventData As ConnectionEndEventData) As Task

パラメーター

connection
DbConnection

接続。

eventData
ConnectionEndEventData

接続に関するコンテキスト情報。

戻り値

非同期操作を表す Task

適用対象