public async Task Invoke(TContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (_options.Predicate(context)) { await _options.Branch(context); } else { await _next(context); } }
public async Task Invoke(TContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (_options.Predicate(context)) { await _options.Branch(context); } else { await _next(context); } }