Ejemplo n.º 1
0
 public DataCollectionDefMaintMethod(
     DataCollectionDefMaint Cdo,
     DataCollectionDefMaintMethods Method,
     DataCollectionDefMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus DeleteAllRevisions(
            DataCollectionDefMaint dataCollectionDefMaint,
            DataCollectionDefMaint_Parameters parameters,
            DataCollectionDefMaint_Request request,
            out DataCollectionDefMaint_Result result)
        {
            result = (DataCollectionDefMaint_Result)null;
            this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)dataCollectionDefMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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