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

适用于