19 lines
725 B
C#
19 lines
725 B
C#
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Webzine.Repository;
|
|
|
|
public class LocalEntityRepository
|
|
{
|
|
private readonly ILogger<LocalEntityRepository> _logger;
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="LocalEntityRepository"/> class.
|
|
/// Initialise une nouvelle instance du <see cref="LocalEntityRepository"/> avec un service de journalisation injecté.
|
|
/// </summary>
|
|
/// <param name="logger">Service de journalisation injecté pour suivre les opérations du repository.</param>
|
|
public LocalEntityRepository(ILogger<LocalEntityRepository> logger)
|
|
{
|
|
this._logger = logger;
|
|
this._logger.LogDebug(1, "NLog injected into LocalEntityRepository");
|
|
}
|
|
} |