Skip to content

Commit

Permalink
Update EntityFrameworkCoreXmlRepository.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotalik committed Sep 11, 2019
1 parent 76c0bf0 commit 1368572
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -42,6 +42,7 @@ public virtual IReadOnlyCollection<XElement> GetAllElements()
{
using (var scope = _services.CreateScope())
{
var context = scope.ServiceProvider.GetRequiredService<TContext>();
// Put logger in a local such that `this` isn't captured.
var logger = _logger;
return context.DataProtectionKeys.AsNoTracking().Select(key => TryParseKeyXml(key.Xml, logger)).ToList().AsReadOnly();
Expand Down

0 comments on commit 1368572

Please sign in to comment.