public FTPTransportMaintMethod( FTPTransportMaint Cdo, FTPTransportMaintMethods Method, FTPTransportMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( FTPTransportMaint fTPTransportMaint, FTPTransportMaint_Parameters parameters, FTPTransportMaint_Request request, out FTPTransportMaint_Result result) { result = (FTPTransportMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)fTPTransportMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IFTPTransportMaintService)this._Channel).Freeze(this._UserProfile, fTPTransportMaint, parameters, request, out result) : this.AddMethod((Method) new FTPTransportMaintMethod(fTPTransportMaint, FTPTransportMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)fTPTransportMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }