Global action filters with HttpEndPoint activity #1231
Unanswered
ricksearcy
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The HTTP Endpoint activities are invoked using the For example, in public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseCors();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.UseMyOwnMiddleware(); // This would be your own middleware that executes before the next one.
app.UseHttpActivities(); // This line installs the `HttpEndpointMiddleware` component.
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
} Let me know if this suffices. If not, we might consider implementing something similar to ASP.NET Core Action Filters for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a need to use an action filter for all incoming requests to the workflow server. This works fine for any endpoints that are defined by Elsa and or my service, but it does not work for endpoints that are created by Elsa workflows as HttpEndPoint activities. Do you a recommended way to hook into the request pipeline when using an HttpEndpoint activity?
Beta Was this translation helpful? Give feedback.
All reactions