コード例 #1
0
 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));
 }
コード例 #2
0
 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));
 }