Reacting to disposable logger provider
This commit is contained in:
parent
3c6868110a
commit
97e66878a7
|
|
@ -1,6 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
|
using System;
|
||||||
using Microsoft.Framework.Internal;
|
using Microsoft.Framework.Internal;
|
||||||
using Microsoft.Framework.Logging;
|
using Microsoft.Framework.Logging;
|
||||||
|
|
||||||
|
|
@ -21,5 +22,9 @@ namespace Microsoft.AspNet.Diagnostics.Elm
|
||||||
{
|
{
|
||||||
return new ElmLogger(name, _options, _store);
|
return new ElmLogger(name, _options, _store);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
|
using System;
|
||||||
using Microsoft.Framework.Logging;
|
using Microsoft.Framework.Logging;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Diagnostics.Entity
|
namespace Microsoft.AspNet.Diagnostics.Entity
|
||||||
|
|
@ -18,5 +19,9 @@ namespace Microsoft.AspNet.Diagnostics.Entity
|
||||||
{
|
{
|
||||||
get { return _logger; }
|
get { return _logger; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual void Dispose()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -21,6 +21,10 @@ namespace Microsoft.AspNet.Diagnostics.Entity.FunctionalTests.Helpers
|
||||||
return _logger;
|
return _logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public class TestLogger : ILogger
|
public class TestLogger : ILogger
|
||||||
{
|
{
|
||||||
private List<string> _messages = new List<string>();
|
private List<string> _messages = new List<string>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue