* Incremental work on samples * Rename HTTP middleware and update samples * Rename HTTP Activities to Workflows * Automatically register core activities when adding Elsa * Fix feature registration bug * Add default auth feature * Make activity serializer more flexible * Bump designer version * Add workflow server + designer samples * Simplify EntityFrameworkCore projects * Update solution * Add Sqlite package references to ensure the correct version is used * Update sample project with EF Core * Update EF extensions * Add server + designer sample project * Cleanup AllInOne project and add some XML comments * Rename ci.yml and add CI for Docker file
20 lines
555 B
C#
20 lines
555 B
C#
using Elsa.Features.Services;
|
|
using Elsa.Http.Features;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace Microsoft.Extensions.DependencyInjection;
|
|
|
|
/// <summary>
|
|
/// Provides extensions to install the <see cref="HttpFeature"/> feature.
|
|
/// </summary>
|
|
public static class ModuleExtensions
|
|
{
|
|
/// <summary>
|
|
/// Install the <see cref="HttpFeature"/> feature.
|
|
/// </summary>
|
|
public static IModule UseHttp(this IModule module, Action<HttpFeature>? configure = default)
|
|
{
|
|
module.Configure(configure);
|
|
return module;
|
|
}
|
|
} |