Enhance logging configuration, update HttpFeature dependencies, and add new identity persistence options

This commit is contained in:
Sipke Schoorstra 2026-04-21 12:18:45 +02:00
parent e7eaa4b1fe
commit ad90e81af9
No known key found for this signature in database
GPG key ID: 5C10502B28A4268F
6 changed files with 18 additions and 4 deletions

View file

@ -7,6 +7,7 @@
<PackageReference Include="Nuplane.Sources.Directory" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\modules\Elsa.Http\Elsa.Http.csproj" />
<ProjectReference Include="..\..\modules\Elsa.Identity\Elsa.Identity.csproj" />
<ProjectReference Include="..\..\modules\Elsa.Persistence.EFCore.Sqlite\Elsa.Persistence.EFCore.Sqlite.csproj" />
<ProjectReference Include="..\..\modules\Elsa.Resilience\Elsa.Resilience.csproj" />

View file

@ -5,6 +5,7 @@
"Microsoft.Hosting": "Information",
"Elsa.SamplePackage": "Information",
"CShells": "Information",
"CShells.AspNetCore.Notifications.ShellEndpointRegistrationHandler": "Warning",
"Nuplane": "Information"
}
}

View file

@ -12,7 +12,7 @@
"Name": "Default",
"Configuration": {
"WebRouting": {
"Path": "foo"
"Path": ""
}
},
"Features": {
@ -25,6 +25,8 @@
"SigningKey": "CHANGE_ME_TO_A_SECURE_RANDOM_KEY"
},
"DefaultAdminUser": {
"AdminUserName": "admin",
"AdminPassword": "",
"AdminRoleName": "admin",
"AdminRolePermissions": [
"*"
@ -36,6 +38,14 @@
"SqliteWorkflowPersistence": {
"ConnectionString": "Data Source=elsa_workflows.db;Cache=Shared"
},
"SqliteIdentityPersistence": {
"ConnectionString": "Data Source=elsa_identity.db;Cache=Shared"
},
"Http": {
"HttpActivityOptions": {
"BaseUrl": "https://localhost:5001"
}
},
"SampleEndpoint": {}
}
}

View file

@ -7,7 +7,6 @@ using Elsa.Http.ContentWriters;
using Elsa.Http.DownloadableContentHandlers;
using Elsa.Http.FileCaches;
using Elsa.Http.Handlers;
using Elsa.Http.Middleware;
using Elsa.Http.Options;
using Elsa.Http.Parsers;
using Elsa.Http.PortResolvers;
@ -24,7 +23,6 @@ using FluentStorage;
using JetBrains.Annotations;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;
using Microsoft.AspNetCore.StaticFiles;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

View file

@ -1,4 +1,5 @@
using CShells.Features;
using Elsa.Expressions.JavaScript.ShellFeatures;
using Elsa.Http.Scripting.JavaScript;
using JetBrains.Annotations;
using Microsoft.Extensions.DependencyInjection;
@ -10,7 +11,8 @@ namespace Elsa.Http.ShellFeatures;
/// </summary>
[ShellFeature(
DisplayName = "HTTP JavaScript",
Description = "Provides JavaScript integration for HTTP activities")]
Description = "Provides JavaScript integration for HTTP activities",
DependsOn = [typeof(JavaScriptFeature)])]
[UsedImplicitly]
public class HttpJavaScriptFeature : IShellFeature
{

View file

@ -98,6 +98,8 @@ public class WorkflowManagementFeature : IShellFeature
.AddScoped<IWorkflowReferenceGraphBuilder, WorkflowReferenceGraphBuilder>()
.AddScoped<IWorkflowDefinitionPublisher, WorkflowDefinitionPublisher>()
.AddScoped<IWorkflowDefinitionImporter, WorkflowDefinitionImporter>()
.AddScoped<IWorkflowDefinitionExporter, WorkflowDefinitionExporter>()
.AddSingleton<IFileNameSanitizer, DefaultFileNameSanitizer>()
.AddScoped<IWorkflowDefinitionManager, WorkflowDefinitionManager>()
.AddScoped<IWorkflowInstanceManager, WorkflowInstanceManager>()
.AddScoped<IWorkflowReferenceUpdater, WorkflowReferenceUpdater>()