Skip to content

Commit

Permalink
Clean up middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairjevans committed Jul 24, 2022
1 parent 4f75773 commit 37bcdcb
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,20 +473,14 @@ public void UseAutofacMiddlewareAddsMiddlewareInTheCorrectOrder()

public class TracingTestMiddleware<T> : OwinMiddleware
{
private readonly List<int> _order;
private readonly int _orderNumber;

public TracingTestMiddleware(OwinMiddleware next, List<int> order, int orderNumber)
public TracingTestMiddleware(OwinMiddleware next)
: base(next)
{
_order = order;
_orderNumber = orderNumber;
}

public override Task Invoke(IOwinContext context)
{
_order.Add(_orderNumber);
return Next.Invoke(context);
throw new NotImplementedException();
}
}

Expand Down

0 comments on commit 37bcdcb

Please sign in to comment.