Exemple #1
0
        public ResultStatus GetWIPMsgs(
            GetNCRs getNCRs,
            GetNCRs_Parameters parameters,
            GetNCRs_Request request,
            out GetNCRs_Result result)
        {
            result = (GetNCRs_Result)null;
            this.OnBeforeCall(nameof(GetWIPMsgs), (DCObject)getNCRs, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IGetNCRsService)this._Channel).GetWIPMsgs(this._UserProfile, getNCRs, parameters, request, out result) : this.AddMethod((Method) new GetNCRsMethod(getNCRs, GetNCRsMethods.GetWIPMsgs, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetWIPMsgs), res, (DCObject)getNCRs, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }
Exemple #2
0
 public GetNCRsMethod(GetNCRs Cdo, GetNCRsMethods Method, GetNCRs_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }