다음을 통해 공유


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입니다.

적용 대상