Ejemplo n.º 1
0
 public ExecuteTaskMethod(
     ExecuteTask Cdo,
     ExecuteTaskMethods Method,
     ExecuteTask_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus GetActions(
            ExecuteTask executeTask,
            ExecuteTask_Parameters parameters,
            ExecuteTask_Request request,
            out ExecuteTask_Result result)
        {
            result = (ExecuteTask_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)executeTask, (Parameters)parameters, (Request)request);
            ResultStatus res;

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