Updates the composer/registration of JSONLogViewer - Can't use default parameters with DI hence needed to use factory & new up an instance
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Umbraco.Core.Components;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Core.Logging.Viewer
|
||||
{
|
||||
@@ -8,7 +7,7 @@ namespace Umbraco.Core.Logging.Viewer
|
||||
{
|
||||
public void Compose(Composition composition)
|
||||
{
|
||||
composition.RegisterUnique<ILogViewer, JsonLogViewer>();
|
||||
composition.RegisterUnique<ILogViewer>(_ => new JsonLogViewer());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user