Exemple #1
0
 public ReleaseReasonMaintMethod(
     ReleaseReasonMaint Cdo,
     ReleaseReasonMaintMethods Method,
     ReleaseReasonMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemple #2
0
        public ResultStatus Freeze(
            ReleaseReasonMaint releaseReasonMaint,
            ReleaseReasonMaint_Parameters parameters,
            ReleaseReasonMaint_Request request,
            out ReleaseReasonMaint_Result result)
        {
            result = (ReleaseReasonMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)releaseReasonMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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