public UsersController(ILogger <UsersController> logger, IUserService userService, ICustomExceptionHandler excHandler) : base(excHandler) { this.userService = userService; this.logger = logger; }
public ShopsController(ILogger <ShopsController> logger, IShopService shopService, ICustomExceptionHandler excHandler) : base(excHandler) { this.shopService = shopService; this.logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="CustomExceptionFilterAttribute"/> class. /// </summary> /// <param name="handler">The exception handler.</param> /// <exception cref="ArgumentNullException">handler</exception> public CustomExceptionFilterAttribute(ICustomExceptionHandler handler) : base() { this.handler = handler ?? throw new ArgumentNullException(nameof(handler)); }
public EntityController(ICustomExceptionHandler excHandler) { this.excHandler = excHandler; }
/// <summary> /// Initializes a new instance of the <see cref="CustomExceptionMiddleware"/> class. /// </summary> /// <param name="next">The request delegate.</param> /// <param name="handler">The exception handler.</param> /// <exception cref="ArgumentNullException"> /// next /// or /// handler /// </exception> public CustomExceptionMiddleware(RequestDelegate next, ICustomExceptionHandler handler) { this.next = next ?? throw new ArgumentNullException(nameof(next)); this.handler = handler ?? throw new ArgumentNullException(nameof(handler)); }
/// <summary> /// Initializes a new instance of the <see cref="CustomExceptionFilterAttribute"/> class. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="handler">The exception handler.</param> /// <exception cref="ArgumentNullException">handler</exception> public CustomExceptionFilterAttribute(IAmiConfigurationManager configuration, ICustomExceptionHandler handler) : base() { this.handler = handler ?? throw new ArgumentNullException(nameof(handler)); }