Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3AB04200C16 for ; Thu, 9 Feb 2017 18:40:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 393E6160B50; Thu, 9 Feb 2017 17:40:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 84236160B4B for ; Thu, 9 Feb 2017 18:40:44 +0100 (CET) Received: (qmail 49487 invoked by uid 500); 9 Feb 2017 17:40:43 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 49478 invoked by uid 99); 9 Feb 2017 17:40:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2017 17:40:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5932018285E for ; Thu, 9 Feb 2017 17:40:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id yyBNhuu_1Gmd for ; Thu, 9 Feb 2017 17:40:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 735725F1B3 for ; Thu, 9 Feb 2017 17:40:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EE6FAE0156 for ; Thu, 9 Feb 2017 17:40:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AB64221D64 for ; Thu, 9 Feb 2017 17:40:41 +0000 (UTC) Date: Thu, 9 Feb 2017 17:40:41 +0000 (UTC) From: "Denis Magda (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-4619) .NET: TransactionScope documentation and example MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Feb 2017 17:40:45 -0000 [ https://issues.apache.org/jira/browse/IGNITE-4619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859877#comment-15859877 ] Denis Magda commented on IGNITE-4619: ------------------------------------- [~ptupitsyn], 1. Ok, looks like I got it. I've tried to rephrase the comments from the code snippet for this scenario to make things a bit clearer. Please see a variant below. Update the doc if you are fine with it. {code} // Assigning a value for the key. cache[1] = 0; using (var tx = transactions.TxStart()) { // Ignite transaction is started manually, TransactionScope below will not have any effect.. using (new TransactionScope()) { cache[1] = 2; //The update is enlisted into the outer Ignite transaction. } // TransactionScope attempts to rever changes, will have no effect on the outer Ignite transaction. tx.Commit(); // Committing Ignite transaction. } cache.Get(1); // Returns 2. {code} > .NET: TransactionScope documentation and example > ------------------------------------------------ > > Key: IGNITE-4619 > URL: https://issues.apache.org/jira/browse/IGNITE-4619 > Project: Ignite > Issue Type: Task > Components: platforms > Affects Versions: 1.9 > Reporter: Pavel Tupitsyn > Assignee: Denis Magda > Labels: .NET > Fix For: 1.9 > > > Create documentation and example for {{TransactionScope}} support (IGNITE-3430). -- This message was sent by Atlassian JIRA (v6.3.15#6346)