예제 #1
0
 public SetupMaintMethod(
     SetupMaint Cdo,
     SetupMaintMethods Method,
     SetupMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
예제 #2
0
        public ResultStatus DeleteAllRevisions(
            SetupMaint setupMaint,
            SetupMaint_Parameters parameters,
            SetupMaint_Request request,
            out SetupMaint_Result result)
        {
            result = (SetupMaint_Result)null;
            this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)setupMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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