Exemplo n.º 1
0
 public EMailDistributionMaintMethod(
     EMailDistributionMaint Cdo,
     EMailDistributionMaintMethods Method,
     EMailDistributionMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemplo n.º 2
0
        public ResultStatus Freeze(
            EMailDistributionMaint eMailDistributionMaint,
            EMailDistributionMaint_Parameters parameters,
            EMailDistributionMaint_Request request,
            out EMailDistributionMaint_Result result)
        {
            result = (EMailDistributionMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)eMailDistributionMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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