* Switch to Azure Service Bus for message brokering Updated the message broker from in-memory to Azure Service Bus to enhance scalability. Added new configuration settings and dependencies to support Azure Service Bus integration, including scoped service initialization and queue/topic management. * Refactor StartWorkers for dependency injection Updated StartWorkers class to use constructor parameter injection and service scope factory for retrieving services. This refactor eliminates the need for field-level dependency storage, enhancing testability and adherence to the dependency injection principles. Additionally, annotated the class with [UsedImplicitly] to eliminate unused code warnings. * Refactor Worker to use IServiceScopeFactory for dependency resolution Refactored the Worker class to use IServiceScopeFactory for DI instead of directly injecting IWorkflowInbox. This enhances the flexibility and lifecycle management of the dependencies. * Add Azure Service Bus integration toggle Introduced a new configuration constant `useAzureServiceBus` to control the optional integration with Azure Service Bus. Implemented conditional logic to bind Azure Service Bus options from configuration if the flag is enabled. * Add IComposite interface and implement Setup method Introduced a new IComposite interface and added a default Setup method to the Composite class. Updated the ActivityFactory to call the Setup method when an activity is an instance of IComposite. The CompositeExample class demonstrates the use of the new interface and method. * Remove AzureServiceBus configuration setup The AzureServiceBus configuration setup was removed from the Program.cs file. This change aims to streamline configuration and remove unused or unnecessary setup, ensuring the code remains clean and maintainable. * Switch MassTransit broker to in-memory Changed the MassTransit broker from AzureServiceBus to Memory in the application configuration. This adjustment aims to simplify deployment and reduce dependencies in the current environment. |
||
|---|---|---|
| .. | ||
| Activities | ||
| Contracts | ||
| Extensions | ||
| Features | ||
| Handlers | ||
| HostedServices | ||
| Models | ||
| Options | ||
| Providers | ||
| Services | ||
| Elsa.AzureServiceBus.csproj | ||
| FodyWeavers.xml | ||