elsa-core/src/apps/Elsa.Server.Web
Sipke Schoorstra 225ad49ea8
Improved multitenancy support for HTTP workflows with per-tenant DbContext (#6032)
* Refactor: Update namespaces and add TenantExtensions

Updated namespaces throughout the project to improve clarity and consistency by moving from 'Common' to appropriate modules. Added TenantExtensions class to simplify fetching connection strings for tenants.

* Implement multitenant DB connection strings

Redesign tenant-specific classes to support multitenancy more effectively. Introduce `MultitenantBackgroundService` and `MultitenantHostedService` for handling tasks per tenant.

* Refactor constructors and remove redundant code

Simplified the constructor parameters for `MultitenantBackgroundService` and `List` class. Removed the unused parameter in `MultitenantBackgroundService` and redundant folder inclusion in the project file. Updated the method calls to use direct parameters in `List` class.

* Remove unused import in ActivityDescriptors Endpoint

The Elsa.Common.Multitenancy import was removed as it is unused in the List/Endpoint.cs file. Removing unused imports helps to improve code readability and maintainability. This change does not affect functionality.
2024-10-15 23:16:50 +02:00
..
Enums Proto.Actor implementation for ChangeTokenSignalPublisher (#5817) 2024-07-24 22:23:33 +02:00
Extensions Improved multitenancy support for HTTP workflows with per-tenant DbContext (#6032) 2024-10-15 23:16:50 +02:00
Filters Implement Activity State Filtering and JavaScript Integration (#5993) 2024-10-02 09:11:35 +02:00
Properties
appsettings.json Improved multitenancy support for HTTP workflows with per-tenant DbContext (#6032) 2024-10-15 23:16:50 +02:00
Elsa.Server.Web.csproj Improved multitenancy support for HTTP workflows with per-tenant DbContext (#6032) 2024-10-15 23:16:50 +02:00
Elsa.Server.Web.csproj.DotSettings
FodyWeavers.xml
Program.cs Improved multitenancy support for HTTP workflows with per-tenant DbContext (#6032) 2024-10-15 23:16:50 +02:00
README.md Add dependencies to docker-compose and update README 2024-07-22 14:36:02 +02:00

Server

This project represents an Elsa application that hosts workflows and exposes API endpoints to manage & execute workflows.

Secrets

The following are the secrets stored in hashed form in appsettings.json:

API key: 48587230567A646D394B435A6277734A-4802fa49-e91e-45e8-b00f-b5492377e20b Admin user: admin Admin password: password

OpenTelemetry (MacOS)

COR_ENABLE_PROFILING=1 COR_PROFILER={918728DD-259F-4A6A-AC2B-B85E1B658318} CORECLR_PROFILER_PATH=$INSTALL_DIR/osx-x64/OpenTelemetry.AutoInstrumentation.Native.dylib DOTNET_ADDITIONAL_DEPS=$INSTALL_DIR/AdditionalDeps DOTNET_EnableDiagnostics=1 DOTNET_SHARED_STORE=$INSTALL_DIR/store DOTNET_STARTUP_HOOKS=OpenTelemetry.AutoInstrumentation.StartupHook OTEL_DOTNET_AUTO_HOME=$INSTALL_DIR OTEL_DOTNET_AUTO_LOGS_CONSOLE_EXPORTER_ENABLED=true OTEL_DOTNET_AUTO_METRICS_CONSOLE_EXPORTER_ENABLED=true OTEL_DOTNET_AUTO_TRACES_ADDITIONAL_SOURCES=Proto.Actor,Elsa.Workflows OTEL_DOTNET_AUTO_TRACES_CONSOLE_EXPORTER_ENABLED=true OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 OTEL_EXPORTER_OTLP_PROTOCOL=grpc OTEL_RESOURCE_ATTRIBUTES=service.name=Elsa Server,service.version=3.3.0,service.instance.id=instance-123,deployment.environment=development