Commit graph

5 commits

Author SHA1 Message Date
raymonddenhaan 0ff791a0b9
Implement automated cleanup for Azure Service Bus subscriptions (#5636)
* Implement automated cleanup for Azure Service Bus subscriptions

An automated cleanup process has been added for subscriptions that do not have queues connected to Azure Service Bus. This new feature deletes orphaned topics and cleans up other remnants within the namespace.

* Removed string interpolation from log message.

* Update Program.cs

Use Memory transport to ensure docker image for demo purposes functions correctly.

* Update AzureServiceBusFeature.cs

* Update CleanupSubscriptions.cs

* Refactor notifications to commands in MassTransit module

Replaced the usage of notifications with commands in the Elsa.MassTransit.AzureServiceBus module. This included changing notification handler to command handler in methods and updating services to use the new command handlers.

---------

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2024-06-20 22:48:03 +02:00
Raymond den Haan 4d5f191fbc Added handler for removing orphaned subscriptions 2024-02-13 14:35:39 +01:00
Raymond den Haan 0eb274e276 Added handler for deleting orphaned subscriptions 2024-02-12 15:32:48 +01:00
Sipke Schoorstra 065765307b Refactor MassTransit & AzureServiceBus configuration and delete unnecessary options
AzureServiceBusOption.cs and RabbitMqOptions.cs files were removed as they're no longer needed. The system now defers the configuration of MassTransit and AzureServiceBus to the application layer (Program.cs). The configuration for PrefetchCount is also allowed at the transport-level. A new abstraction, ConsumerTypeDefinition, collects all the consumer types with their respective definitions if provided. Adjustments have been made in related extension methods and classes to reflect these changes.
2023-12-11 19:59:13 +01:00
Sipke Schoorstra 21e438bdd1
Add Azure Service Bus for MassTransit (#4624)
* Split RabbitMQ from MassTransit and add Azure Service Bus package

* Use Send topology for commands
2023-11-15 20:47:11 +01:00