2022-05-26 10:47:31 +00:00
|
|
|
using Elsa.Http.Middleware;
|
2022-01-04 08:42:12 +00:00
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
|
|
2022-05-26 10:47:31 +00:00
|
|
|
namespace Elsa.Http.Extensions;
|
2022-01-04 08:42:12 +00:00
|
|
|
|
2022-12-30 12:11:29 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Adds extension methods to <see cref="IApplicationBuilder"/> related to workflow middleware components.
|
|
|
|
|
/// </summary>
|
2022-01-04 08:42:12 +00:00
|
|
|
public static class ApplicationBuilderExtensions
|
|
|
|
|
{
|
2022-12-30 12:11:29 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Installs the <see cref="WorkflowsMiddleware"/> component.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static IApplicationBuilder UseWorkflows(this IApplicationBuilder app) => app.UseMiddleware<WorkflowsMiddleware>();
|
2022-01-04 08:42:12 +00:00
|
|
|
}
|