コード例 #1
0
 public StatusController(IStatusReader statusReader, ILogger <StatusController> logger, IMapper mapper)
 {
     _statusreader = statusReader ?? throw new ArgumentException($"StatusController.Ctr parameter {nameof(statusReader)} cannot be null.");
     _logger       = logger ?? throw new ArgumentException($"StatusController.Ctr parameter {nameof(logger)} cannot be null.");
     _mapper       = mapper ?? throw new ArgumentException($"StatusController.Ctr parameter {nameof(mapper)} cannot be null.");
 }