Exemplo n.º 1
0
 public ApiException(ApiStatusCode statusCode,
                     IApiStatusMessageDictionary statusMessageDictionary,
                     string message = null,
                     string details = null)
     : base(statusCode, statusMessageDictionary, message)
 {
     Details = details;
 }
Exemplo n.º 2
0
 public BrandsController(IProductStorage productStorage,
                         IMapper mapper,
                         IApiStatusMessageDictionary statusMessageDictionary)
     : base(statusMessageDictionary)
 {
     _productStorage = productStorage;
     _mapper         = mapper;
 }
 public ExceptionMiddleware(RequestDelegate next,
                            ILogger <ExceptionMiddleware> logger,
                            IHostEnvironment env,
                            IApiStatusMessageDictionary messageDictionary)
 {
     _next              = next;
     _logger            = logger;
     _env               = env;
     _messageDictionary = messageDictionary;
 }
Exemplo n.º 4
0
 public BaseApiController(IApiStatusMessageDictionary statusMessageDictionary)
 {
     _statusMessageDictionary = statusMessageDictionary;
 }
 public WeatherForecastController(ILogger <WeatherForecastController> logger,
                                  IApiStatusMessageDictionary statusMessageDictionary)
     : base(statusMessageDictionary)
 {
     _logger = logger;
 }
Exemplo n.º 6
0
 public BasketController(IBasketStorage basketStorage,
                         IApiStatusMessageDictionary statusMessageDictionary)
     : base(statusMessageDictionary)
 {
     _basketStorage = basketStorage;
 }
Exemplo n.º 7
0
 public BuggyController(StorageContext context, IApiStatusMessageDictionary statusMessageDictionary)
     : base(statusMessageDictionary)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public ErrorController(IApiStatusMessageDictionary statusMessageDictionary)
     : base(statusMessageDictionary)
 {
 }
Exemplo n.º 9
0
 public ApiResponse(ApiStatusCode statusCode,
                    IApiStatusMessageDictionary statusMessageDictionary, string message = null)
 {
     StatusCode = statusCode;
     Message    = message ?? statusMessageDictionary.GetDefaultMessageForStatusCode(statusCode);
 }
 public ApiValidationErrorResponse(IApiStatusMessageDictionary statusMessageDictionary)
     : base(ApiStatusCode.BadRequest, statusMessageDictionary)
 {
 }