Ejemplo n.º 1
0
 public ChangeMgtSpecMaintMethod(
     ChangeMgtSpecMaint Cdo,
     ChangeMgtSpecMaintMethods Method,
     ChangeMgtSpecMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus DeleteAllRevisions(
            ChangeMgtSpecMaint changeMgtSpecMaint,
            ChangeMgtSpecMaint_Parameters parameters,
            ChangeMgtSpecMaint_Request request,
            out ChangeMgtSpecMaint_Result result)
        {
            result = (ChangeMgtSpecMaint_Result)null;
            this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)changeMgtSpecMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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