Add nullability to web.common

This commit is contained in:
Nikolaj Geisle
2022-03-29 13:44:21 +02:00
parent 86ae730b1e
commit b52c4e50cf
151 changed files with 731 additions and 675 deletions

View File

@@ -81,8 +81,8 @@ namespace Umbraco.Extensions
/// </remarks>
public static TypeLoader AddTypeLoader(
this IServiceCollection services,
Assembly entryAssembly,
IHostingEnvironment hostingEnvironment,
Assembly? entryAssembly,
IHostingEnvironment? hostingEnvironment,
ILoggerFactory loggerFactory,
AppCaches appCaches,
IConfiguration configuration,
@@ -115,7 +115,7 @@ namespace Umbraco.Extensions
typeFinder,
runtimeHash,
appCaches.RuntimeCache,
new DirectoryInfo(hostingEnvironment.LocalTempPath),
new DirectoryInfo(hostingEnvironment?.LocalTempPath ?? string.Empty),
loggerFactory.CreateLogger<TypeLoader>(),
profiler
);