Use Microsoft ILogger in Repositories

This commit is contained in:
Nikolaj
2020-09-17 09:42:55 +02:00
parent 9511c99ee7
commit 001df5f5a1
39 changed files with 130 additions and 117 deletions

View File

@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Logging;
using NPoco;
using Umbraco.Core.Cache;
using Umbraco.Core.Logging;
using Umbraco.Core.Models;
using Umbraco.Core.Persistence.Dtos;
using Umbraco.Core.Persistence.Querying;
@@ -18,7 +18,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
{
private readonly Guid _containerObjectType;
public EntityContainerRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger, Guid containerObjectType)
public EntityContainerRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger<EntityContainerRepository> logger, Guid containerObjectType)
: base(scopeAccessor, cache, logger)
{
var allowedContainers = new[] { Constants.ObjectTypes.DocumentTypeContainer, Constants.ObjectTypes.MediaTypeContainer, Constants.ObjectTypes.DataTypeContainer };