コード例 #1
0
		public ApiErrorHandlerMiddleware(
			RequestDelegate next,
			ILoggerFactory loggerFactory,
			ObjectResultExecutor objectResultExecutor)
		{
			_next = next;
			_logger = loggerFactory.CreateLogger<ApiErrorHandlerMiddleware>();
			_objectResultExecutor = objectResultExecutor;
			var defaultProblemDetectionHandler = new DefaultProblemDetectionHandler(loggerFactory.CreateLogger<DefaultProblemDetectionHandler>());
			_contextProblemDetectionHandler = defaultProblemDetectionHandler;
			_exceptionProblemDetectionHandler = defaultProblemDetectionHandler;
		}