Example #1
0
        public static async Task <PongMessage> Handle(PingMessage message, SqlTransaction tx)
        {
            await tx.StoreReceived(message.Id, "PingMessage");

            await tx.StoreSent(message.Id, "PongMessage");

            return(new PongMessage
            {
                Id = message.Id,
                Name = message.Name
            });
        }
Example #2
0
 public static Task Handle(Target target, SqlTransaction tx)
 {
     return(tx.StoreReceived(target.Id, "Target"));
 }
Example #3
0
 public static Task Handle(UserCreated created, SqlTransaction tx)
 {
     return(tx.StoreReceived(created.Id, "UserCreated"));
 }
Example #4
0
 public Task Handle(PongMessage message, SqlTransaction tx)
 {
     return(tx.StoreReceived(message.Id, "PongMessage"));
 }