Table of Contents

Class UserNameInterceptor

Namespace
Innova.Data.Entity.Configuration
Assembly
Innova.Data.dll

Interceptor for managing the user name associated with a database connection.

public class UserNameInterceptor : IDbConnectionInterceptor, IInterceptor, IDisposable
Inheritance
UserNameInterceptor
Implements

Constructors

UserNameInterceptor(Func<string>)

Initializes a new instance of the UserNameInterceptor class.

Methods

ConnectionClosed(DbConnection, ConnectionEndEventData)

Called just after EF has called Close() in an async context.

ConnectionClosedAsync(DbConnection, ConnectionEndEventData)

Called just after EF has called System.Data.Common.DbConnection.CloseAsync.

ConnectionClosing(DbConnection, ConnectionEventData, InterceptionResult)

Called just before EF intends to call System.Data.Common.DbConnection.CloseAsync.

ConnectionClosingAsync(DbConnection, ConnectionEventData, InterceptionResult)

Called just before EF intends to call Close() in an async context.

ConnectionFailed(DbConnection, ConnectionErrorEventData)

Called when closing of a connection has failed with an exception. />.

ConnectionFailedAsync(DbConnection, ConnectionErrorEventData, CancellationToken)

Called when closing of a connection has failed with an exception. />.

ConnectionOpened(DbConnection, ConnectionEndEventData)

Called just after EF has called Open().

ConnectionOpenedAsync(DbConnection, ConnectionEndEventData, CancellationToken)

Called just after EF has called OpenAsync().

ConnectionOpening(DbConnection, ConnectionEventData, InterceptionResult)

Called just before EF intends to call Open().

ConnectionOpeningAsync(DbConnection, ConnectionEventData, InterceptionResult, CancellationToken)

Called just before EF intends to call OpenAsync().

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(bool)

Disposes of the resources used by the UserNameInterceptor.

~UserNameInterceptor()

Finalizes an instance of the UserNameInterceptor class.