public Transaction(RequestParams reqPrms, ResponseParams resPrms, Action<Transaction> callBack) { if (callBack==null) throw new ArgumentNullException("Transaction callback can not be null"); _callBack = callBack; Result = TransactionResult.Initialized; Stage = TransactionStage.Initial; }
public Transaction(RequestParams reqPrms, ResponseParams resPrms, Action <Transaction> callBack) { if (callBack == null) { throw new ArgumentNullException("Transaction callback can not be null"); } _callBack = callBack; Result = TransactionResult.Initialized; Stage = TransactionStage.Initial; }
private void StartNewTransaction(RequestParams reqPrmsPattern, ResponseParams resPrmsPattern) { Transaction tr = new Transaction(reqPrmsPattern, resPrmsPattern, TransactionCallback); Transactions.Add(tr); if (Attempts > 0) { tr.Begin(); } else { SessionCallback(); } }
public void BeginSession(RequestParams reqPrmsPattern, ResponseParams resPrmsPattern) { StartNewTransaction(reqPrmsPattern, resPrmsPattern); }
private void StartNewTransaction(RequestParams reqPrmsPattern, ResponseParams resPrmsPattern) { Transaction tr = new Transaction(reqPrmsPattern, resPrmsPattern, TransactionCallback); Transactions.Add(tr); if (Attempts > 0) { tr.Begin(); } else { SessionCallback(); } }
public void BeginSession(RequestParams reqPrmsPattern, ResponseParams resPrmsPattern) { StartNewTransaction(reqPrmsPattern, resPrmsPattern); }