Esempio n. 1
0
 public GenericTxnMethod(
     GenericTxn Cdo,
     GenericTxnMethods Method,
     GenericTxn_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Esempio n. 2
0
        public ResultStatus GetActions(
            GenericTxn genericTxn,
            GenericTxn_Parameters parameters,
            GenericTxn_Request request,
            out GenericTxn_Result result)
        {
            result = (GenericTxn_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)genericTxn, (Parameters)parameters, (Request)request);
            ResultStatus res;

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