コード例 #1
0
 public BatchStartMethod(
     BatchStart Cdo,
     BatchStartMethods Method,
     BatchStart_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
コード例 #2
0
        public ResultStatus GetActions(
            BatchStart batchStart,
            BatchStart_Parameters parameters,
            BatchStart_Request request,
            out BatchStart_Result result)
        {
            result = (BatchStart_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)batchStart, (Parameters)parameters, (Request)request);
            ResultStatus res;

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