예제 #1
0
        public static async Task Handle(
            ItemCreated created,
            SqlConnection conn,      // the connection for the container scope
            SqlTransaction tx,       // the current transaction
            MessageTracker tracker,
            Envelope envelope)
        {
            await conn.CreateCommand(tx, "insert into receiver.item_created (id, name) values (@id, @name)")
            .With("id", created.Id)
            .With("name", created.Name)
            .ExecuteNonQueryAsync();

            tracker.Record(created, envelope);
        }
예제 #2
0
 public Task post_send_item(ItemCreated created, IMessageContext context)
 {
     return(context.Send(created));
 }