Class EventHandler
The event handler for processing domain events and publishing them to an AWS Kinesis stream.
Inherited Members
Namespace: Innovt.Cloud.AWS.Kinesis
Assembly: Innovt.Cloud.AWS.Kinesis.dll
Syntax
public class EventHandler : DataProducer<DomainEvent>, IDisposable, IEventHandler
Constructors
| Edit this page View SourceEventHandler(string, ILogger, IAwsConfiguration)
Initializes a new instance of the EventHandler class with the specified parameters.
Declaration
public EventHandler(string busName, ILogger logger, IAwsConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
string | busName | The name of the AWS Kinesis stream to publish events to. |
ILogger | logger | The logger instance for logging events. |
IAwsConfiguration | configuration | The AWS configuration for accessing AWS services. |
EventHandler(string, ILogger, IAwsConfiguration, string)
Initializes a new instance of the EventHandler class with the specified parameters.
Declaration
public EventHandler(string busName, ILogger logger, IAwsConfiguration configuration, string region)
Parameters
Type | Name | Description |
---|---|---|
string | busName | The name of the AWS Kinesis stream to publish events to. |
ILogger | logger | The logger instance for logging events. |
IAwsConfiguration | configuration | The AWS configuration for accessing AWS services. |
string | region | The AWS region to use. |