(#674) changed TypeResolver in Cli/logging

to adhere to the specifications set in #620
This commit is contained in:
Nils Andresen 2022-01-01 22:30:40 +01:00 committed by Patrik Svensson
parent 52c1d9122b
commit 9a6d8d92b4

View File

@ -15,6 +15,11 @@ public sealed class TypeResolver : ITypeResolver
public object Resolve(Type type)
{
return _provider.GetRequiredService(type);
if (type == null)
{
return null;
}
return _provider.GetService(type);
}
}