public PriorityCodeMaintMethod( PriorityCodeMaint Cdo, PriorityCodeMaintMethods Method, PriorityCodeMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( PriorityCodeMaint priorityCodeMaint, PriorityCodeMaint_Parameters parameters, PriorityCodeMaint_Request request, out PriorityCodeMaint_Result result) { result = (PriorityCodeMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)priorityCodeMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IPriorityCodeMaintService)this._Channel).Freeze(this._UserProfile, priorityCodeMaint, parameters, request, out result) : this.AddMethod((Method) new PriorityCodeMaintMethod(priorityCodeMaint, PriorityCodeMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)priorityCodeMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }