From 74a3aa19f7d64571fec1bdfd4b71da7f3157d686 Mon Sep 17 00:00:00 2001 From: Hans Mulder Date: Fri, 17 Jan 2020 14:16:13 +0100 Subject: [PATCH] Pass parameter consumeResult to handle.Cleanup - fixed cleanup state after exception --- Tapeti/Default/ControllerMethodBinding.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tapeti/Default/ControllerMethodBinding.cs b/Tapeti/Default/ControllerMethodBinding.cs index a0e5bfa..dae8a26 100644 --- a/Tapeti/Default/ControllerMethodBinding.cs +++ b/Tapeti/Default/ControllerMethodBinding.cs @@ -184,7 +184,7 @@ namespace Tapeti.Default { await MiddlewareHelper.GoAsync( bindingInfo.CleanupMiddleware, - async (handler, next) => await handler.Cleanup(context, ConsumeResult.Success, next), + async (handler, next) => await handler.Cleanup(context, consumeResult, next), () => Task.CompletedTask); }