Esempio n. 1
0
 public DispositionMaintMethod(
     DispositionMaint Cdo,
     DispositionMaintMethods Method,
     DispositionMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Esempio n. 2
0
        public ResultStatus Freeze(
            DispositionMaint dispositionMaint,
            DispositionMaint_Parameters parameters,
            DispositionMaint_Request request,
            out DispositionMaint_Result result)
        {
            result = (DispositionMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)dispositionMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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