Esempio n. 1
0
        public ResultStatus GetActions(
            Transfer transfer,
            Transfer_Parameters parameters,
            Transfer_Request request,
            out Transfer_Result result)
        {
            result = (Transfer_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)transfer, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((ITransferService)this._Channel).GetActions(this._UserProfile, transfer, parameters, request, out result) : this.AddMethod((Method) new TransferMethod(transfer, TransferMethods.GetActions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetActions), res, (DCObject)transfer, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }
Esempio n. 2
0
 public TransferMethod(Transfer Cdo, TransferMethods Method, Transfer_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }