diff --git a/src/bundles/Elsa.WorkflowServer.Web/Program.cs b/src/bundles/Elsa.WorkflowServer.Web/Program.cs index 62e0da0a3..af1cecf8c 100644 --- a/src/bundles/Elsa.WorkflowServer.Web/Program.cs +++ b/src/bundles/Elsa.WorkflowServer.Web/Program.cs @@ -1,16 +1,11 @@ using Elsa; using Elsa.EntityFrameworkCore.Modules.Identity; -using Elsa.EntityFrameworkCore.Modules.Labels; using Elsa.EntityFrameworkCore.Modules.Management; using Elsa.EntityFrameworkCore.Modules.Runtime; using Elsa.Extensions; using Elsa.Http.Handlers; using Elsa.JavaScript.Options; using Elsa.MongoDb.Extensions; -using Elsa.MongoDb.Modules.Identity; -using Elsa.MongoDb.Modules.Labels; -using Elsa.MongoDb.Modules.Management; -using Elsa.MongoDb.Modules.Runtime; using Elsa.WorkflowServer.Web; EndpointSecurityOptions.DisableSecurity(); @@ -18,7 +13,6 @@ EndpointSecurityOptions.DisableSecurity(); var builder = WebApplication.CreateBuilder(args); var services = builder.Services; var configuration = builder.Configuration; -var sqliteConnectionString = configuration.GetConnectionString("Sqlite")!; var identitySection = configuration.GetSection("Identity"); var identityTokenSection = identitySection.GetSection("Tokens"); diff --git a/src/clients/Elsa.Api.Client/Extensions/DependencyInjectionExtensions.cs b/src/clients/Elsa.Api.Client/Extensions/DependencyInjectionExtensions.cs index a68601026..53dfa149c 100644 --- a/src/clients/Elsa.Api.Client/Extensions/DependencyInjectionExtensions.cs +++ b/src/clients/Elsa.Api.Client/Extensions/DependencyInjectionExtensions.cs @@ -93,7 +93,7 @@ public static class DependencyInjectionExtensions serializerOptions.Converters.Add(new VersionOptionsJsonConverter()); serializerOptions.Converters.Add(new ActivityJsonConverterFactory(serviceProvider)); serializerOptions.Converters.Add(new ExpressionJsonConverterFactory()); - + var settings = new RefitSettings { ContentSerializer = new SystemTextJsonContentSerializer(serializerOptions) diff --git a/src/modules/Elsa.Workflows.Runtime/Contracts/IWorkflowStateExporter.cs b/src/modules/Elsa.Workflows.Runtime/Contracts/IWorkflowStateExporter.cs index e49d8cada..2f095f37d 100644 --- a/src/modules/Elsa.Workflows.Runtime/Contracts/IWorkflowStateExporter.cs +++ b/src/modules/Elsa.Workflows.Runtime/Contracts/IWorkflowStateExporter.cs @@ -9,5 +9,12 @@ namespace Elsa.Workflows.Runtime.Contracts; /// public interface IWorkflowStateExporter { + /// + /// Exports the workflow state. + /// + /// + /// + /// + /// ValueTask ExportAsync(Workflow workflow, WorkflowState workflowState, CancellationToken cancellationToken); } \ No newline at end of file diff --git a/src/modules/Elsa.Workflows.Runtime/Extensions/WorkflowStateExporterSetExtensions.cs b/src/modules/Elsa.Workflows.Runtime/Extensions/WorkflowStateExporterSetExtensions.cs deleted file mode 100644 index b8e975d8e..000000000 --- a/src/modules/Elsa.Workflows.Runtime/Extensions/WorkflowStateExporterSetExtensions.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Elsa.Workflows.Runtime.Contracts; -using Microsoft.Extensions.DependencyInjection; - -// ReSharper disable once CheckNamespace -namespace Elsa.Extensions; - -public static class WorkflowStateExporterSetExtensions -{ - /// - /// Register a workflow factory that creates an instance of the specified workflow type. - /// - public static void Add(this ISet> set) where TExporter : IWorkflowStateExporter => set.Add(sp => ActivatorUtilities.GetServiceOrCreateInstance(sp)); -} \ No newline at end of file