예제 #1
0
 public EMailMessageMaintMethod(
     EMailMessageMaint Cdo,
     EMailMessageMaintMethods Method,
     EMailMessageMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
예제 #2
0
        public ResultStatus Freeze(
            EMailMessageMaint eMailMessageMaint,
            EMailMessageMaint_Parameters parameters,
            EMailMessageMaint_Request request,
            out EMailMessageMaint_Result result)
        {
            result = (EMailMessageMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)eMailMessageMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IEMailMessageMaintService)this._Channel).Freeze(this._UserProfile, eMailMessageMaint, parameters, request, out result) : this.AddMethod((Method) new EMailMessageMaintMethod(eMailMessageMaint, EMailMessageMaintMethods.Freeze, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Freeze), res, (DCObject)eMailMessageMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }