IRelationalConnectionDiagnosticsLogger.ConnectionOpeningAsync Método

Definição

Logs do ConnectionOpening evento.

public System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult> ConnectionOpeningAsync (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime, System.Threading.CancellationToken cancellationToken);
abstract member ConnectionOpeningAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult>
Public Function ConnectionOpeningAsync (connection As IRelationalConnection, startTime As DateTimeOffset, cancellationToken As CancellationToken) As ValueTask(Of InterceptionResult)

Parâmetros

connection
IRelationalConnection

A conexão.

startTime
DateTimeOffset

A hora em que a operação foi iniciada.

cancellationToken
CancellationToken

Um CancellationToken a ser observado enquanto aguarda a conclusão da tarefa.

Retornos

Um Task que representa a operação assíncrona.

Exceções

Se o padrão CancellationToken for cancelado.

Aplica-se a