예제 #1
0
 public ComponentDistributeMethod(
     ComponentDistribute Cdo,
     ComponentDistributeMethods Method,
     ComponentDistribute_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
예제 #2
0
        public ResultStatus GetActions(
            ComponentDistribute componentDistribute,
            ComponentDistribute_Parameters parameters,
            ComponentDistribute_Request request,
            out ComponentDistribute_Result result)
        {
            result = (ComponentDistribute_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)componentDistribute, (Parameters)parameters, (Request)request);
            ResultStatus res;

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