elsa-core/src/modules/Elsa.Tenants
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
..
Contracts Improved multitenancy support for HTTP workflows with per-tenant DbContext (#6032) 2024-10-15 23:16:50 +02:00
Extensions Improved multitenancy support for HTTP workflows with per-tenant DbContext (#6032) 2024-10-15 23:16:50 +02:00
Features Improved multitenancy support for HTTP workflows with per-tenant DbContext (#6032) 2024-10-15 23:16:50 +02:00
Options Refactor Tenant Resolution to Use Async Local Storage for Operation-wide Access (#6022) 2024-10-12 12:08:09 +02:00
Providers Improved multitenancy support for HTTP workflows with per-tenant DbContext (#6032) 2024-10-15 23:16:50 +02:00
Services Refactor Tenant Resolution to Use Async Local Storage for Operation-wide Access (#6022) 2024-10-12 12:08:09 +02:00
Elsa.Tenants.csproj Refactor Tenant Resolution to Use Async Local Storage for Operation-wide Access (#6022) 2024-10-12 12:08:09 +02:00
Elsa.Tenants.csproj.DotSettings Implement multitenant HTTP routing (#6031) 2024-10-14 21:27:11 +02:00
FodyWeavers.xml Multitenancy (#5159) 2024-06-10 21:30:53 +02:00