ConnectionInterceptor
ConnectionInterceptor()
AsyncCalled
ClosedCalled
ClosingCalled
ConnectionId
Context
ContextId
Exception
FailedCalled
OpenedCalled
OpeningCalled
SyncCalled
AssertClosed(ConnectionEndEventData)
AssertClosing(ConnectionEventData)
AssertFailed(ConnectionErrorEventData)
AssertOpened(ConnectionEndEventData)
AssertOpening(ConnectionEventData)
ConnectionClosed(DbConnection, ConnectionEndEventData)
ConnectionClosedAsync(DbConnection, ConnectionEndEventData)
ConnectionClosing(DbConnection, ConnectionEventData, InterceptionResult)
ConnectionClosingAsync(DbConnection, ConnectionEventData, InterceptionResult)
ConnectionFailed(DbConnection, ConnectionErrorEventData)
ConnectionFailedAsync(DbConnection, ConnectionErrorEventData, CancellationToken)
ConnectionOpened(DbConnection, ConnectionEndEventData)
ConnectionOpenedAsync(DbConnection, ConnectionEndEventData, CancellationToken)
ConnectionOpening(DbConnection, ConnectionEventData, InterceptionResult)
ConnectionOpeningAsync(DbConnection, ConnectionEventData, InterceptionResult, CancellationToken)
Reset()
net10.0-windows7.0
namespace Microsoft.EntityFrameworkCore
{
public abstract class ConnectionInterceptionTestBase : InterceptionTestBase
{
protected class ConnectionInterceptor : IDbConnectionInterceptor, IInterceptor
{
public virtual Task! ConnectionFailedAsync(DbConnection! connection, ConnectionErrorEventData! eventData, CancellationToken cancellationToken = default);
}
}
}
.NET | 9.010.0 |
---|---|
Information specific to net10.0 | |
Platforms | This API is only available when you target a specific platform: |
Windows | 7.0 |
Information specific to net10.0-windows7.0 | |
Assembly | Microsoft.EntityFrameworkCore.Relational.Specification.Tests , Version=9.0.3.0, PublicKeyToken=adb9793829ddae60 |
Referencing | Your project needs a package reference to |
Package | Microsoft.EntityFrameworkCore.Relational.Specification.Tests (9.0.3) net9.0 |
Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API