Exemplo n.º 1
0
        public void Closed(DbConnection connection,
                           DbConnectionInterceptionContext interceptionContext)
        {
            var context = EFProfilerContextProvider.GetLoggedDbConnection(connection, interceptionContext);

            _profiler.ConnectionClosed(connection, context);
        }
Exemplo n.º 2
0
 public override void Close()
 {
     _profiler.ConnectionClosed(InnerConnection, NHProfilerContextProvider.GetLoggedDbConnection(InnerConnection));
     InnerConnection.Close();
 }