Ejemplo n.º 1
0
 public ActionMaintMethod(
     ActionMaint Cdo,
     ActionMaintMethods Method,
     ActionMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus Freeze(
            ActionMaint actionMaint,
            ActionMaint_Parameters parameters,
            ActionMaint_Request request,
            out ActionMaint_Result result)
        {
            result = (ActionMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)actionMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IActionMaintService)this._Channel).Freeze(this._UserProfile, actionMaint, parameters, request, out result) : this.AddMethod((Method) new ActionMaintMethod(actionMaint, ActionMaintMethods.Freeze, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Freeze), res, (DCObject)actionMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }