コード例 #1
0
 public FTPTransportMaintMethod(
     FTPTransportMaint Cdo,
     FTPTransportMaintMethods Method,
     FTPTransportMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
コード例 #2
0
        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);
        }