diff --git a/src/Http/Wolverine.Http/HttpChain.Codegen.cs b/src/Http/Wolverine.Http/HttpChain.Codegen.cs
index cba17383a..c39a57ee9 100644
--- a/src/Http/Wolverine.Http/HttpChain.Codegen.cs
+++ b/src/Http/Wolverine.Http/HttpChain.Codegen.cs
@@ -146,7 +146,7 @@ internal IEnumerable DetermineFrames(GenerationRules rules)
.Select(x => x.ReturnAction(this)).SelectMany(x => x.Frames()).ToArray();
foreach (var frame in actionsOnOtherReturnValues) yield return frame;
- if (Postprocessors.Any(x => x.MaySendMessages()))
+ if (Postprocessors.Concat(actionsOnOtherReturnValues).Any(x => x.MaySendMessages()))
{
var flush = Postprocessors.OfType().FirstOrDefault();
if (flush != null)
diff --git a/src/Samples/EFCoreSample/ItemService.Tests/ItemService.Tests.csproj b/src/Samples/EFCoreSample/ItemService.Tests/ItemService.Tests.csproj
index 243190746..204f07ac2 100644
--- a/src/Samples/EFCoreSample/ItemService.Tests/ItemService.Tests.csproj
+++ b/src/Samples/EFCoreSample/ItemService.Tests/ItemService.Tests.csproj
@@ -1,5 +1,8 @@
-
+
+ net9.0
+
+
false
diff --git a/src/Samples/EFCoreSample/ItemService.Tests/end_to_end.cs b/src/Samples/EFCoreSample/ItemService.Tests/end_to_end.cs
index 8c90d9df6..bfb38e171 100644
--- a/src/Samples/EFCoreSample/ItemService.Tests/end_to_end.cs
+++ b/src/Samples/EFCoreSample/ItemService.Tests/end_to_end.cs
@@ -69,7 +69,7 @@ await host.Scenario(x =>
x.Post.Json(command).ToUrl("/items/create4");
x.StatusCodeShouldBe(204);
});
- });
+ });
tracked.FindSingleTrackedMessageOfType()
.ShouldNotBeNull();
diff --git a/src/Samples/EFCoreSample/ItemService/ItemService.csproj b/src/Samples/EFCoreSample/ItemService/ItemService.csproj
index 80e3ab6e9..670e27155 100644
--- a/src/Samples/EFCoreSample/ItemService/ItemService.csproj
+++ b/src/Samples/EFCoreSample/ItemService/ItemService.csproj
@@ -1,8 +1,10 @@
-
+
+ net9.0
+
+
-
@@ -11,4 +13,16 @@
+
+
+
+
+
+
+
+
+
+
+
+