Exemple #1
0
 public SampleDataPointMaintMethod(
     SampleDataPointMaint Cdo,
     SampleDataPointMaintMethods Method,
     SampleDataPointMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemple #2
0
        public ResultStatus DeleteAllRevisions(
            SampleDataPointMaint sampleDataPointMaint,
            SampleDataPointMaint_Parameters parameters,
            SampleDataPointMaint_Request request,
            out SampleDataPointMaint_Result result)
        {
            result = (SampleDataPointMaint_Result)null;
            this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)sampleDataPointMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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