-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: removed all references to deleted TypedHandler project
- Loading branch information
1 parent
5fa1037
commit d537d26
Showing
8 changed files
with
16 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
samples/KafkaFlow.Sample.SchemaRegistry/Handlers/AvroMessageHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
using KafkaFlow.Middlewares.TypedHandler; | ||
|
||
namespace KafkaFlow.Sample.SchemaRegistry.Handlers; | ||
|
||
using System; | ||
using System.Threading.Tasks; | ||
using global::SchemaRegistry; | ||
|
||
public class AvroMessageHandler : IMessageHandler<AvroLogMessage> | ||
namespace KafkaFlow.Sample.SchemaRegistry.Handlers | ||
{ | ||
public Task Handle(IMessageContext context, AvroLogMessage message) | ||
using System; | ||
using System.Threading.Tasks; | ||
using KafkaFlow.Middlewares.TypedHandler; | ||
using global::SchemaRegistry; | ||
|
||
public class AvroMessageHandler : IMessageHandler<AvroLogMessage> | ||
{ | ||
Console.WriteLine( | ||
"Partition: {0} | Offset: {1} | Message: {2} | Avro", | ||
context.ConsumerContext.Partition, | ||
context.ConsumerContext.Offset, | ||
message.Severity.ToString()); | ||
public Task Handle(IMessageContext context, AvroLogMessage message) | ||
{ | ||
Console.WriteLine( | ||
"Partition: {0} | Offset: {1} | Message: {2} | Avro", | ||
context.ConsumerContext.Partition, | ||
context.ConsumerContext.Offset, | ||
message.Severity.ToString()); | ||
|
||
return Task.CompletedTask; | ||
return Task.CompletedTask; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters