public EMailNotificationMaintMethod( EMailNotificationMaint Cdo, EMailNotificationMaintMethods Method, EMailNotificationMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( EMailNotificationMaint eMailNotificationMaint, EMailNotificationMaint_Parameters parameters, EMailNotificationMaint_Request request, out EMailNotificationMaint_Result result) { result = (EMailNotificationMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)eMailNotificationMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IEMailNotificationMaintService)this._Channel).Freeze(this._UserProfile, eMailNotificationMaint, parameters, request, out result) : this.AddMethod((Method) new EMailNotificationMaintMethod(eMailNotificationMaint, EMailNotificationMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)eMailNotificationMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }