React to logging changes

This commit is contained in:
BrennanConroy 2016-04-01 11:51:00 -07:00
parent bb1b2695bf
commit 591ae3c26a
3 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ namespace Microsoft.AspNetCore.Diagnostics.Elm
return _options.Filter(_name, logLevel); return _options.Filter(_name, logLevel);
} }
public IDisposable BeginScopeImpl(object state) public IDisposable BeginScope<TState>(TState state)
{ {
var scope = new ElmScope(_name, state); var scope = new ElmScope(_name, state);
scope.Context = ElmScope.Current?.Context ?? GetNewActivityContext(); scope.Context = ElmScope.Current?.Context ?? GetNewActivityContext();

View File

@ -62,7 +62,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
return true; return true;
} }
public virtual IDisposable BeginScopeImpl(object state) public virtual IDisposable BeginScope<TState>(TState state)
{ {
return NullScope.Instance; return NullScope.Instance;
} }

View File

@ -44,7 +44,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.FunctionalTests.H
return true; return true;
} }
public IDisposable BeginScopeImpl(object state) public IDisposable BeginScope<TState>(TState state)
{ {
return NullScope.Instance; return NullScope.Instance;
} }