Adds in Composition Extension Methods to allow Setting the LogViewer without having to know the composition.RegisterUnique syntax

This commit is contained in:
Warren Buckley
2019-01-28 15:39:49 +00:00
parent 9eabc1fb3f
commit 4a5eca3c6a
2 changed files with 33 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ namespace Umbraco.Core.Logging.Viewer
{
public void Compose(Composition composition)
{
composition.RegisterUnique<ILogViewer>(_ => new JsonLogViewer());
composition.SetLogViewer(_ => new JsonLogViewer());
}
}
}