Exemple #1
0
 public OpenCPStatusMethod(
     OpenCPStatus Cdo,
     OpenCPStatusMethods Method,
     OpenCPStatus_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemple #2
0
        public ResultStatus GetActions(
            OpenCPStatus openCPStatus,
            OpenCPStatus_Parameters parameters,
            OpenCPStatus_Request request,
            out OpenCPStatus_Result result)
        {
            result = (OpenCPStatus_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)openCPStatus, (Parameters)parameters, (Request)request);
            ResultStatus res;

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