Class IntegrationEventDispatcher
- Namespace
- Savvyio.EventDriven
- Assembly
- Savvyio.EventDriven.dll
Provides a default implementation of of the IIntegrationEventDispatcher interface.
public class IntegrationEventDispatcher : FireForgetDispatcher, IIntegrationEventDispatcher, IDispatcher
- Inheritance
-
ObjectIntegrationEventDispatcher
- Implements
- Inherited Members
Constructors
IntegrationEventDispatcher(IServiceLocator)
Initializes a new instance of the IntegrationEventDispatcher class.
public IntegrationEventDispatcher(IServiceLocator serviceLocator)
Parameters
serviceLocator
IServiceLocatorThe provider of service implementations.
Methods
Publish(IIntegrationEvent)
Publishes the specified request
using Fire-and-Forget/In-Only MEP.
public void Publish(IIntegrationEvent request)
Parameters
request
IIntegrationEventThe IIntegrationEvent to publish.
PublishAsync(IIntegrationEvent, Action<AsyncOptions>)
Publishes the specified request
asynchronous using Fire-and-Forget/In-Only MEP.
public Task PublishAsync(IIntegrationEvent request, Action<AsyncOptions> setup = null)
Parameters
request
IIntegrationEventThe IIntegrationEvent to publish.
setup
Action<AsyncOptions>The AsyncOptions which may be configured.
Returns
- Task
A System.Threading.Tasks.Task that represents the asynchronous operation.