Esempio n. 1
0
 public ProcessListMaintMethod(
     ProcessListMaint Cdo,
     ProcessListMaintMethods Method,
     ProcessListMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Esempio n. 2
0
        public ResultStatus DeleteAllRevisions(
            ProcessListMaint processListMaint,
            ProcessListMaint_Parameters parameters,
            ProcessListMaint_Request request,
            out ProcessListMaint_Result result)
        {
            result = (ProcessListMaint_Result)null;
            this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)processListMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IProcessListMaintService)this._Channel).DeleteAllRevisions(this._UserProfile, processListMaint, parameters, request, out result) : this.AddMethod((Method) new ProcessListMaintMethod(processListMaint, ProcessListMaintMethods.DeleteAllRevisions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(DeleteAllRevisions), res, (DCObject)processListMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }