* Implemented workflow sink module * Sequentual process of saving sinks in single consumer * Refactor * Log errors during sink export * Removed redundant classes * Use in process messaging in bundle * Fixed the issue with duplicated ResultVariable key on serializing * Moved workflowsink modules out of persistence projects * Moved migrations out of old projects Co-authored-by: Gürkan Güran <grkngrn@gmail.com> Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
27 lines
885 B
C#
27 lines
885 B
C#
using Elsa.Features.Abstractions;
|
|
using Elsa.Features.Attributes;
|
|
using Elsa.Features.Services;
|
|
using Elsa.MassTransit.Implementations;
|
|
using Elsa.Workflows.Runtime.Features;
|
|
using Elsa.Workflows.Runtime.Services;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Elsa.MassTransit.Features;
|
|
|
|
/// <summary>
|
|
/// Configures the system to use a MassTransit implementation of <see cref="IWorkflowDispatcher"/>;
|
|
/// </summary>
|
|
[DependsOn(typeof(WorkflowRuntimeFeature))]
|
|
public class MassTransitWorkflowDispatcherFeature : FeatureBase
|
|
{
|
|
/// <inheritdoc />
|
|
public MassTransitWorkflowDispatcherFeature(IModule module) : base(module)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void Configure()
|
|
{
|
|
Module.Configure<WorkflowRuntimeFeature>(f => f.WorkflowDispatcher = ActivatorUtilities.GetServiceOrCreateInstance<MassTransitWorkflowDispatcher>);
|
|
}
|
|
} |