Exemplo n.º 1
0
 public ResponseSetMaintMethod(
     ResponseSetMaint Cdo,
     ResponseSetMaintMethods Method,
     ResponseSetMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemplo n.º 2
0
        public ResultStatus Freeze(
            ResponseSetMaint responseSetMaint,
            ResponseSetMaint_Parameters parameters,
            ResponseSetMaint_Request request,
            out ResponseSetMaint_Result result)
        {
            result = (ResponseSetMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)responseSetMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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