Ejemplo n.º 1
0
 public TransferReworkMethod(
     TransferRework Cdo,
     TransferReworkMethods Method,
     TransferRework_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus GetActions(
            TransferRework transferRework,
            TransferRework_Parameters parameters,
            TransferRework_Request request,
            out TransferRework_Result result)
        {
            result = (TransferRework_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)transferRework, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((ITransferReworkService)this._Channel).GetActions(this._UserProfile, transferRework, parameters, request, out result) : this.AddMethod((Method) new TransferReworkMethod(transferRework, TransferReworkMethods.GetActions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetActions), res, (DCObject)transferRework, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }