Update HttpEndpoint.cs
This commit is contained in:
parent
4f092ee5e4
commit
301dea4c44
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue