NServiceBus
NServiceBus copied to clipboard
Component refactoring cleanup
trafficstars
With the refactoring efforts around the hosting, receive and send components, a lot of workarounds had to be added for backwards compatibility. With the next major version, those workarounds can/should be removed in order to simplify the code quite a bit.
- Remove the internal settings access by the component's
Settingsclasses - Change transport initialization by removing the marked obsolete methods in the
SendComponentto the component's regular Initialization process. - Consider removal of
featureComponent.RegisterFeatureEnabledStatusInSettings(hostingConfiguration);functionality inEndpointCreator.Initializethat is needed to allow transports to know if theTimeoutManageris enabled or not (needed to for backwards compatibility around native timeouts)- Consider removing feature state completely from settings
- Remove obsolete marked methods in
HostComponent