Ejemplo n.º 1
0
 public SampleTestMaintMethod(
     SampleTestMaint Cdo,
     SampleTestMaintMethods Method,
     SampleTestMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus DeleteAllRevisions(
            SampleTestMaint sampleTestMaint,
            SampleTestMaint_Parameters parameters,
            SampleTestMaint_Request request,
            out SampleTestMaint_Result result)
        {
            result = (SampleTestMaint_Result)null;
            this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)sampleTestMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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