Workflow Settings cleanup

This commit is contained in:
Sipke Schoorstra 2021-09-20 16:32:48 +02:00
parent 14474db626
commit 8cd82b5a3c
5 changed files with 4 additions and 24 deletions

View file

@ -3,7 +3,7 @@ using Elsa.WorkflowSettings.Handlers;
using Elsa.WorkflowSettings.Persistence;
using Elsa.WorkflowSettings.Persistence.Decorators;
using Elsa.WorkflowSettings.Providers;
using Elsa.WorkflowSettings.Services.WorkflowSettings;
using Elsa.WorkflowSettings.Services;
using Microsoft.Extensions.DependencyInjection;
namespace Elsa.WorkflowSettings.Extensions

View file

@ -3,7 +3,7 @@ using System.Threading;
using System.Threading.Tasks;
using Elsa.Events;
using Elsa.WorkflowSettings.Models;
using Elsa.WorkflowSettings.Services.WorkflowSettings;
using Elsa.WorkflowSettings.Services;
using MediatR;
namespace Elsa.WorkflowSettings.Handlers

View file

@ -2,7 +2,7 @@ using System.Threading;
using System.Threading.Tasks;
using Elsa.WorkflowSettings.Models;
namespace Elsa.WorkflowSettings.Services.WorkflowSettings
namespace Elsa.WorkflowSettings.Services
{
public interface IWorkflowSettingsManager
{

View file

@ -1,20 +0,0 @@
namespace Elsa.WorkflowSettings.Services.Models
{
public class WorkflowSettingsContext
{
/// <summary>
/// Get workflow settings value filtered by Workflow Blueprint Id and Key
/// </summary>
/// <param name="workflowBlueprintId">Workflow Blueprint Id</param>
/// <param name="key">Key</param>
public WorkflowSettingsContext(string workflowBlueprintId, string key = "disabled")
{
WorkflowBlueprintId = workflowBlueprintId;
Key = key;
}
public string WorkflowBlueprintId { get; }
public string Key { get; }
public object? Value { get; set; }
}
}

View file

@ -4,7 +4,7 @@ using System.Threading.Tasks;
using Elsa.WorkflowSettings.Models;
using Elsa.WorkflowSettings.Providers;
namespace Elsa.WorkflowSettings.Services.WorkflowSettings
namespace Elsa.WorkflowSettings.Services
{
public class WorkflowSettingsManager : IWorkflowSettingsManager
{