Exemplo n.º 1
0
 public NamedObjectGroupMaintMethod(
     NamedObjectGroupMaint Cdo,
     NamedObjectGroupMaintMethods Method,
     NamedObjectGroupMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemplo n.º 2
0
        public ResultStatus Freeze(
            NamedObjectGroupMaint namedObjectGroupMaint,
            NamedObjectGroupMaint_Parameters parameters,
            NamedObjectGroupMaint_Request request,
            out NamedObjectGroupMaint_Result result)
        {
            result = (NamedObjectGroupMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)namedObjectGroupMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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