public CreateCircleCommandHandler(ICircleRepository circleRepository, ICircleQueries circleQueries, IHttpContextAccessor httpContextAccessor, ILogger <CreateCircleCommandHandler> logger) { _circleRepository = circleRepository ?? throw new ArgumentNullException(nameof(circleRepository)); _circleQueries = circleQueries ?? throw new ArgumentNullException(nameof(circleQueries)); _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public CirclesController(IMediator mediator, ICircleQueries circleQueries, ILogger <CirclesController> logger) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _circleQueries = circleQueries ?? throw new ArgumentNullException(nameof(circleQueries)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }