次の方法で共有


IDbConnectionInterceptor.ConnectionDisposedAsync メソッド

定義

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

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

パラメーター

connection
DbConnection

接続。

eventData
ConnectionEndEventData

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

戻り値

非同期操作を表す Task

適用対象