using System; using System.Security.Principal; using Quadarax.Foundation.Core.Logging; using Quadarax.Foundation.Core.Data.Interface.Repository; namespace Quadarax.Foundation.Core.Business { public abstract class AbstractRepositoryService : AbstractService where TRepository: IRepository { protected TRepository Repository { get; } protected AbstractRepositoryService(TRepository repository,IPrincipal currentPrincipal, ILogger logger) : base(currentPrincipal, logger) { Repository = repository ?? throw new ArgumentNullException(nameof(repository)); } } }