Skip to content

Commit

Permalink
person entry consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsantana committed Apr 6, 2021
1 parent 17d41b2 commit cbc7c5e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Threading;
using System.Threading.Tasks;
using Confluent.Kafka;
using NetSampleArch.Infra.CrossCutting.Bus.Interfaces;
using NetSampleArch.Infra.CrossCutting.Configuration;
using NetSampleArch.Ports.Consumers.Interfaces.Commands;
using Serilog;

namespace NetSampleArch.Ports.Consumers.Consumers.Commands
{
public class PersonCreatedEventHandler
: BaseKafkaConsumer<PersonCreatedEventHandler>, IPersonCreatedEventHandler
{
public PersonCreatedEventHandler(ILogger logger, IBus bus, Configuration configuration)
: base(logger, bus, configuration)
{

}

public override Task MessageReceivedAsync(ConsumeResult<Ignore, string> receivedMessage, CancellationToken cancellationToken)
{
throw new System.NotImplementedException();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace NetSampleArch.Ports.Consumers.Interfaces.Commands
{
public interface IPersonCreatedEventHandler : IKafkaConsumer
{

}
}

0 comments on commit cbc7c5e

Please sign in to comment.