Пример #1
0
 public UpdateEventFailureActionsMethod(
     UpdateEventFailureActions Cdo,
     UpdateEventFailureActionsMethods Method,
     UpdateEventFailureActions_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Пример #2
0
        public ResultStatus GetActions(
            UpdateEventFailureActions updateEventFailureActions,
            UpdateEventFailureActions_Parameters parameters,
            UpdateEventFailureActions_Request request,
            out UpdateEventFailureActions_Result result)
        {
            result = (UpdateEventFailureActions_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)updateEventFailureActions, (Parameters)parameters, (Request)request);
            ResultStatus res;

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