public ComponentDefectMethod( ComponentDefect Cdo, ComponentDefectMethods Method, ComponentDefect_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus GetActions( ComponentDefect componentDefect, ComponentDefect_Parameters parameters, ComponentDefect_Request request, out ComponentDefect_Result result) { result = (ComponentDefect_Result)null; this.OnBeforeCall(nameof(GetActions), (DCObject)componentDefect, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IComponentDefectService)this._Channel).GetActions(this._UserProfile, componentDefect, parameters, request, out result) : this.AddMethod((Method) new ComponentDefectMethod(componentDefect, ComponentDefectMethods.GetActions, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(GetActions), res, (DCObject)componentDefect, (Parameters)parameters, (Request)request, (Result)result); } return(res); }