| 1234567891011121314151617 |
- 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<TRepository> : 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));
- }
- }
- }
|