Пример #1
0
 public ExceptionHandlingMiddleware(IPipeBuilderFactory factory, ExceptionHandlingOptions options = null)
 {
     HandlingFunc = options?.HandlingFunc ?? ((exception, context, token) => Task.FromResult(0));
     InnerPipe    = factory.Create(options?.InnerPipe);
 }