public PhotoCommand(IPhotoStore store, IPhotoResizer resizer, IPhotoConfig config) { Ensure.Any.IsNotNull(store, nameof(store)); Ensure.Any.IsNotNull(resizer, nameof(resizer)); Ensure.Any.IsNotNull(config, nameof(config)); _store = store; _resizer = resizer; _config = config; }
public OversizeDataExceptionMiddleware( RequestDelegate next, ILogger <OversizeDataExceptionMiddleware> logger, IResultExecutor executor, IPhotoConfig config) { Ensure.Any.IsNotNull(next, nameof(next)); Ensure.Any.IsNotNull(logger, nameof(logger)); Ensure.Any.IsNotNull(executor, nameof(executor)); Ensure.Any.IsNotNull(config, nameof(config)); _next = next; _logger = logger; _executor = executor; _config = config; }