public ResultStatus Freeze( UOMMaint uOMMaint, UOMMaint_Parameters parameters, UOMMaint_Request request, out UOMMaint_Result result) { result = (UOMMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)uOMMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IUOMMaintService)this._Channel).Freeze(this._UserProfile, uOMMaint, parameters, request, out result) : this.AddMethod((Method) new UOMMaintMethod(uOMMaint, UOMMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)uOMMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }
public UOMMaintMethod(UOMMaint Cdo, UOMMaintMethods Method, UOMMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }