public InspectionLevelMaintMethod( InspectionLevelMaint Cdo, InspectionLevelMaintMethods Method, InspectionLevelMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( InspectionLevelMaint inspectionLevelMaint, InspectionLevelMaint_Parameters parameters, InspectionLevelMaint_Request request, out InspectionLevelMaint_Result result) { result = (InspectionLevelMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)inspectionLevelMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IInspectionLevelMaintService)this._Channel).Freeze(this._UserProfile, inspectionLevelMaint, parameters, request, out result) : this.AddMethod((Method) new InspectionLevelMaintMethod(inspectionLevelMaint, InspectionLevelMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)inspectionLevelMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }