Update HttpEndpoint.cs

This commit is contained in:
Sipke Schoorstra 2025-05-19 22:02:49 +02:00 committed by GitHub
parent 4f092ee5e4
commit 301dea4c44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -163,7 +163,7 @@ public class HttpEndpoint : Trigger<HttpRequest>
{
var path = Path.Get(context);
var methods = SupportedMethods.GetOrDefault(context) ?? new List<string> { HttpMethods.Get };
await context.WaitForHttpRequest(path, methods, OnResumeAsync);
await context.WaitForHttpRequest(path, methods, OnResumeAsync);
}
private async ValueTask OnResumeAsync(ActivityExecutionContext context)
@ -175,8 +175,8 @@ public class HttpEndpoint : Trigger<HttpRequest>
{
// We're executing in a non-HTTP context (e.g. in a virtual actor).
// Create a bookmark to allow the invoker to export the state and resume execution from there.
await context.CreateCrossBoundaryBookmark();
return;
context.CreateCrossBoundaryBookmark();
return;
}
await HandleRequestAsync(context);
@ -497,4 +497,4 @@ public class HttpEndpoint : Trigger<HttpRequest>
return routeData;
}
}
}