Skip to content

Commit

Permalink
Merge pull request #79 from NLog/304NotModified-patch-1
Browse files Browse the repository at this point in the history
Update XML docs for BeginScope
  • Loading branch information
304NotModified authored Jan 14, 2017
2 parents 56016c5 + b9643c8 commit f9c979e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/NLog.Extensions.Logging/NLogLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,20 @@ private static LogLevel ConvertLogLevel(Microsoft.Extensions.Logging.LogLevel lo
}
}


/// <summary>
/// Begin a scope. Log in config with ${ndc}
/// TODO not working with async
/// </summary>
/// <param name="state">The state</param>
/// <returns></returns>
public IDisposable BeginScope<TState>(TState state)
{
if (state == null)
{
throw new ArgumentNullException(nameof(state));
}
//TODO not working with async

return NestedDiagnosticsContext.Push(state);
}
}
}
}

0 comments on commit f9c979e

Please sign in to comment.