Last active
November 3, 2020 20:13
-
-
Save fatihdumanli/c39bf27be4b04deb326373b8a4a23874 to your computer and use it in GitHub Desktop.
Example usage of IMessageHandler
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
using EventTower; | |
using MessagesCommon; | |
using System; | |
using System.Threading.Tasks; | |
namespace Worker | |
{ | |
public class EventHandler | |
: IMessageHandler<MessagesCommon.CustomerEmailChanged> | |
{ | |
public Task Handle(CustomerEmailChanged message) | |
{ | |
Console.WriteLine("An event received. CustomerId: {0}", message.CustomerId); | |
return Task.CompletedTask; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment