Add nullability to nucache & lucene projects

This commit is contained in:
Nikolaj Geisle
2022-03-30 13:34:56 +02:00
parent b52c4e50cf
commit 05a08bef63
105 changed files with 736 additions and 619 deletions

View File

@@ -82,7 +82,7 @@ namespace Umbraco.Cms.Infrastructure.PublishedCache.Persistence
=> _repository.GetMediaSource(id);
/// <inheritdoc/>
public IEnumerable<ContentNodeKit> GetTypeContentSources(IEnumerable<int> ids)
public IEnumerable<ContentNodeKit> GetTypeContentSources(IEnumerable<int>? ids)
=> _repository.GetTypeContentSources(ids);
/// <inheritdoc/>
@@ -115,9 +115,9 @@ namespace Umbraco.Cms.Infrastructure.PublishedCache.Persistence
/// <inheritdoc/>
public void Rebuild(
IReadOnlyCollection<int> contentTypeIds = null,
IReadOnlyCollection<int> mediaTypeIds = null,
IReadOnlyCollection<int> memberTypeIds = null)
IReadOnlyCollection<int>? contentTypeIds = null,
IReadOnlyCollection<int>? mediaTypeIds = null,
IReadOnlyCollection<int>? memberTypeIds = null)
{
using (IScope scope = ScopeProvider.CreateScope(repositoryCacheMode: RepositoryCacheMode.Scoped))
{