public ResultStatus Freeze( SiteMaint siteMaint, SiteMaint_Parameters parameters, SiteMaint_Request request, out SiteMaint_Result result) { result = (SiteMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)siteMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((ISiteMaintService)this._Channel).Freeze(this._UserProfile, siteMaint, parameters, request, out result) : this.AddMethod((Method) new SiteMaintMethod(siteMaint, SiteMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)siteMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }
public SiteMaintMethod(SiteMaint Cdo, SiteMaintMethods Method, SiteMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }