Use specified logger when available. (#307)
Co-authored-by: Jayson Maxson <jmaxson@ntdev.microsoft.com>
This commit is contained in:
Родитель
8e82e34a55
Коммит
5c78f29674
|
@ -340,7 +340,10 @@ namespace Microsoft.Performance.Toolkit.Engine
|
|||
|
||||
try
|
||||
{
|
||||
assemblyLoader ??= new AssemblyLoader();
|
||||
assemblyLoader ??= logger is null
|
||||
? new AssemblyLoader()
|
||||
: new AssemblyLoader(logger);
|
||||
|
||||
var validatorFactory = new Func<IEnumerable<string>, IPreloadValidator>(_ => new NullValidator());
|
||||
|
||||
AssemblyExtensionDiscovery assemblyDiscovery = logger is null
|
||||
|
|
Загрузка…
Ссылка в новой задаче