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
serviceLocatorIServiceLocatorThe provider of service implementations.
Methods
Publish(IIntegrationEvent)
Publishes the specified request using Fire-and-Forget/In-Only MEP.
public void Publish(IIntegrationEvent request)
Parameters
requestIIntegrationEventThe 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
requestIIntegrationEventThe IIntegrationEvent to publish.
setupAction<AsyncOptions>The AsyncOptions which may be configured.