Added minor changes to MassTransitFeature to start using MassTransitOptions as the source for the prefetch count as the new source for this information is in the base MassTransitOptions. Created a new ConfigureTransportBus in both RabbitMQ and Azure Service Bus to support the context in the configuration action. Marked the old ConfigureServiceBus to persuade migration over to the contextual action. Currently, it will run the legacy action first and then the new contextual action second. The Elsa.Server.Web was also updated to use the new ConfigureTransportBus. #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Classification
API change to enhance MassTransit Transport Bus configuration capabilities for components that require an IRegistrationBusContext.
PR Summary
This PR updates MassTransit configuration for Azure Service Bus and RabbitMQ. Previously, the IBusRegistrationContext was not included in the configuration action and prevents configuration of additional MassTransit components that require the context being passed in.
Program.cs
: ReplacesConfigureServiceBus
withConfigureTransportBus
as the old action is now obsolete.AzureServiceBusFeature.cs
andRabbitMqServiceBusFeature.cs
: MarksConfigureServiceBus
as obsolete, introducesConfigureTransportBus
. Added XML documentation to bring awareness to the alternative action and some clarification that this action runs in addition to Elsa's configuration.MassTransitFeature.cs
: UpdatesConfigureInMemoryTransport
method documentation and updatesAddMassTransit
method within to includeMassTransitOptions
configuration for prefetch count.