SlimMessageBus
SlimMessageBus copied to clipboard
#275 Notify outbox service that a message is available for publishing
On sending a message to the outbox, the OutboxForwardingPublishInterceptor
will notify the OutboxSendingTask
that a publishing loop should begin. If the OutboxSendingTask
is already publishing messages, the notification will be ignored.
The notification is only accepted if the service is currently active.
The original PollIdleSleep
configuration is still used should no notification be received. The sleep timer is both a fail safe for the process and will initiate publishing in a distributed environment (no cross app communication available).
Note: notifications are sent from OutboxForwardingPublishInterceptor
on disposal so as to ensure they are raised only once any transactions have been completed.