コード例 #1
0
ファイル: BankService.cs プロジェクト: chungvodim/Razzil
 private HttpContent CreateHttpContent(Step step, TransactionResultEnum transactionResult)
 {
     var postData = new List<KeyValuePair<string, string>>();
     postData.Add(new KeyValuePair<string, string>("tnxId", this.tnxId));
     postData.Add(new KeyValuePair<string, string>("step", step.CurrentStepId.ToString()));
     postData.Add(new KeyValuePair<string, string>("status", transactionResult.ToString()));
     HttpContent content = new FormUrlEncodedContent(postData);
     return content;
 }
コード例 #2
0
ファイル: BankService.cs プロジェクト: chungvodim/Razzil
 private void OnTransactionSuccess(Step step)
 {
     CallBackHttpClient.PostAsync(this.CallBackURL, CreateHttpContent(step, TransactionResultEnum.Inprogress));
 }
コード例 #3
0
ファイル: BankService.cs プロジェクト: chungvodim/Razzil
 private void OnTransactionStart(Step step)
 {
     CallBackHttpClient.PostAsync(this.CallBackURL, CreateHttpContent(step, TransactionResultEnum.Started));
 }
コード例 #4
0
ファイル: Worker.cs プロジェクト: chungvodim/Razzil
 public Worker(StepContext stepContext)
 {
     Step firstStep = new EnterPageStep(1, stepContext);
     this.Step = firstStep;
 }
コード例 #5
0
ファイル: Program.cs プロジェクト: chungvodim/Razzil
 private static void OnTransactionSuccess(Step step)
 {
     Console.WriteLine("Transaction is successful");
 }
コード例 #6
0
ファイル: Program.cs プロジェクト: chungvodim/Razzil
 private static void OnTransactionStart(Step step)
 {
     Console.WriteLine("Start Transaction");
 }
コード例 #7
0
ファイル: Program.cs プロジェクト: chungvodim/Razzil
 private static void OnTransactionFail(Step step)
 {
     Console.WriteLine("Transaction is Failed at step : {0}", step.Name);
 }
コード例 #8
0
ファイル: Program.cs プロジェクト: chungvodim/Razzil
 private static void OnTransactionInprogress(Step step)
 {
     Console.WriteLine("Transaction is inprogress at step : {0}", step.Name);
 }