public TargetSystemMaintMethod( TargetSystemMaint Cdo, TargetSystemMaintMethods Method, TargetSystemMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( TargetSystemMaint targetSystemMaint, TargetSystemMaint_Parameters parameters, TargetSystemMaint_Request request, out TargetSystemMaint_Result result) { result = (TargetSystemMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)targetSystemMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((ITargetSystemMaintService)this._Channel).Freeze(this._UserProfile, targetSystemMaint, parameters, request, out result) : this.AddMethod((Method) new TargetSystemMaintMethod(targetSystemMaint, TargetSystemMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)targetSystemMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }