Beispiel #1
0
 public OpenCPStatusesMethod(
     OpenCPStatuses Cdo,
     OpenCPStatusesMethods Method,
     OpenCPStatuses_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus GetActions(
            OpenCPStatuses openCPStatuses,
            OpenCPStatuses_Parameters parameters,
            OpenCPStatuses_Request request,
            out OpenCPStatuses_Result result)
        {
            result = (OpenCPStatuses_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)openCPStatuses, (Parameters)parameters, (Request)request);
            ResultStatus res;

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