public BatchDispenseMethod( BatchDispense Cdo, BatchDispenseMethods Method, BatchDispense_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus GetActions( BatchDispense batchDispense, BatchDispense_Parameters parameters, BatchDispense_Request request, out BatchDispense_Result result) { result = (BatchDispense_Result)null; this.OnBeforeCall(nameof(GetActions), (DCObject)batchDispense, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IBatchDispenseService)this._Channel).GetActions(this._UserProfile, batchDispense, parameters, request, out result) : this.AddMethod((Method) new BatchDispenseMethod(batchDispense, BatchDispenseMethods.GetActions, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(GetActions), res, (DCObject)batchDispense, (Parameters)parameters, (Request)request, (Result)result); } return(res); }