using Elsa.Features.Services;
using Elsa.MassTransit.Features;
using Elsa.Workflows.Runtime.Contracts;
using Elsa.Workflows.Runtime.Features;
// ReSharper disable once CheckNamespace
namespace Elsa.Extensions;
///
/// Provides extensions to that enables and configures the workflow runtime to use an implementation of using MassTransit.
///
public static class WorkflowRuntimeFeatureExtensions
{
///
/// Enable and configure MassTransit.
///
public static WorkflowRuntimeFeature UseMassTransitDispatcher(this WorkflowRuntimeFeature feature)
{
feature.Module.Configure();
return feature;
}
}