Skip to content

Commit

Permalink
Update docs for now-public logger extensions
Browse files Browse the repository at this point in the history
These were made public but the docs had not been updated.
  • Loading branch information
ajcvickers committed May 10, 2019
1 parent 1cb4021 commit dc72342
Show file tree
Hide file tree
Showing 6 changed files with 613 additions and 485 deletions.
358 changes: 208 additions & 150 deletions src/EFCore.Relational/Diagnostics/RelationalLoggerExtensions.cs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/EFCore.Relational/Storage/RelationalConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -562,15 +562,15 @@ public virtual bool Close()
var startTime = DateTimeOffset.UtcNow;
var stopwatch = Stopwatch.StartNew();

Dependencies.ConnectionLogger.ConnectionClosing(this, startTime);
Dependencies.ConnectionLogger.ConnectionClosing(this, startTime, async: false);

try
{
DbConnection.Close();

wasClosed = true;

Dependencies.ConnectionLogger.ConnectionClosed(this, startTime, stopwatch.Elapsed);
Dependencies.ConnectionLogger.ConnectionClosed(this, startTime, stopwatch.Elapsed, async: false);
}
catch (Exception e)
{
Expand Down
Loading

0 comments on commit dc72342

Please sign in to comment.