Beispiel #1
0
 public NotificationController(ILoggerManger logger,
                               INotificationRepository notification,
                               IFeatureManagerSnapshot featureManager)
 {
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
     _notification   = notification ?? throw new ArgumentNullException(nameof(notification));
     _featureManager = featureManager ?? throw new ArgumentNullException(nameof(featureManager));
 }
 public TaskController2(ILoggerManger logger,
                        ITaskRepository taskRepository,
                        IMemoryCache memoryCache,
                        IMapper mapper)
 {
     _taskRepository = taskRepository ?? throw new ArgumentNullException(nameof(taskRepository));
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
     _memoryCache    = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
     _mapper         = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public ProjectController(ILoggerManger logger,
                          IProjectRepository projectRepository,
                          IMemoryCache memoryCache,
                          IMapper mapper)
 {
     _projectRepository = projectRepository ?? throw new ArgumentNullException(nameof(projectRepository));
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
     _memoryCache       = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #4
0
 public UserController(IUserRepository userRepository, ILoggerManger logger)
 {
     _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Beispiel #5
0
 public OwnerController(ILoggerManger logger, IRepositoryWrapper repository)
 {
     _logger     = logger;
     _repository = repository;
 }