Merge pull request #4621 from alexanderkyte/strdup_env
[mono.git] / mcs / class / System.Transactions / System.Transactions / CommittableTransaction.cs
index f6781dc923fc6d5a14cc56e59f35a860f533a03e..f98f6fa6e129338cf2482e497d981ef24cc0b0db 100644 (file)
@@ -41,26 +41,26 @@ namespace System.Transactions
                        this.options = options;
                }
 
-               public IAsyncResult BeginCommit (AsyncCallback callback,
-                       object user_defined_state)
+               public IAsyncResult BeginCommit (AsyncCallback asyncCallback,
+                       object asyncState)
                {
-                       this.callback = callback;
-                       this.user_defined_state = user_defined_state;
+                       this.callback = asyncCallback;
+                       this.user_defined_state = asyncState;
 
                        AsyncCallback cb = null;
-                       if (callback != null)
+                       if (asyncCallback != null)
                                cb = new AsyncCallback (CommitCallback);
 
                        asyncResult = BeginCommitInternal (cb);
                        return this;
                }
                
-               public void EndCommit (IAsyncResult ar)
+               public void EndCommit (IAsyncResult asyncResult)
                {
-                       if (ar != this)
+                       if (asyncResult != this)
                                throw new ArgumentException ("The IAsyncResult parameter must be the same parameter as returned by BeginCommit.", "asyncResult");
 
-                       EndCommitInternal (asyncResult);
+                       EndCommitInternal (this.asyncResult);
                }
 
                private void CommitCallback (IAsyncResult ar)