コード例 #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
ファイル: ItemSender.cs プロジェクト: tmpreston/jasper
 public Task post_send_item(ItemCreated created, IMessageContext context)
 {
     return(context.Send(created));
 }