示例#1
0
 public FactoryMaintMethod(
     FactoryMaint Cdo,
     FactoryMaintMethods Method,
     FactoryMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
示例#2
0
        public ResultStatus Freeze(
            FactoryMaint factoryMaint,
            FactoryMaint_Parameters parameters,
            FactoryMaint_Request request,
            out FactoryMaint_Result result)
        {
            result = (FactoryMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)factoryMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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