Exemplo n.º 1
0
 public HoldStatusTxnsMethod(
     HoldStatusTxns Cdo,
     HoldStatusTxnsMethods Method,
     HoldStatusTxns_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemplo n.º 2
0
        public ResultStatus GetActions(
            HoldStatusTxns holdStatusTxns,
            HoldStatusTxns_Parameters parameters,
            HoldStatusTxns_Request request,
            out HoldStatusTxns_Result result)
        {
            result = (HoldStatusTxns_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)holdStatusTxns, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IHoldStatusTxnsService)this._Channel).GetActions(this._UserProfile, holdStatusTxns, parameters, request, out result) : this.AddMethod((Method) new HoldStatusTxnsMethod(holdStatusTxns, HoldStatusTxnsMethods.GetActions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetActions), res, (DCObject)holdStatusTxns, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }