예제 #1
0
        public void Closed(DbConnection connection,
                           DbConnectionInterceptionContext interceptionContext)
        {
            var context = EFProfilerContextProvider.GetLoggedDbConnection(connection, interceptionContext);

            _profiler.ConnectionClosed(connection, context);
        }
예제 #2
0
 public override void Close()
 {
     _profiler.ConnectionClosed(InnerConnection, NHProfilerContextProvider.GetLoggedDbConnection(InnerConnection));
     InnerConnection.Close();
 }