Ejemplo n.º 1
0
 public CompoundTxnMethod(
     CompoundTxn Cdo,
     CompoundTxnMethods Method,
     CompoundTxn_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus ResolveParametricData(
            CompoundTxn compoundTxn,
            CompoundTxn_Parameters parameters,
            CompoundTxn_Request request,
            out CompoundTxn_Result result)
        {
            result = (CompoundTxn_Result)null;
            this.OnBeforeCall(nameof(ResolveParametricData), (DCObject)compoundTxn, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((ICompoundTxnService)this._Channel).ResolveParametricData(this._UserProfile, compoundTxn, parameters, request, out result) : this.AddMethod((Method) new CompoundTxnMethod(compoundTxn, CompoundTxnMethods.ResolveParametricData, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(ResolveParametricData), res, (DCObject)compoundTxn, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }