예제 #1
0
 public ScaleStatusCodeMaintMethod(
     ScaleStatusCodeMaint Cdo,
     ScaleStatusCodeMaintMethods Method,
     ScaleStatusCodeMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
예제 #2
0
        public ResultStatus Freeze(
            ScaleStatusCodeMaint scaleStatusCodeMaint,
            ScaleStatusCodeMaint_Parameters parameters,
            ScaleStatusCodeMaint_Request request,
            out ScaleStatusCodeMaint_Result result)
        {
            result = (ScaleStatusCodeMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)scaleStatusCodeMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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