Class KinesisEventHandler
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 KinesisEventHandler : DataProducer<DomainEvent>, IDisposable, IEventHandler
Constructors
| Edit this page View SourceKinesisEventHandler(string, ILogger, IAwsConfiguration)
Initializes a new instance of the KinesisEventHandler class with the specified parameters.
Declaration
public KinesisEventHandler(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. |
KinesisEventHandler(string, ILogger, IAwsConfiguration, string)
Initializes a new instance of the KinesisEventHandler class with the specified parameters.
Declaration
public KinesisEventHandler(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. |