Beispiel #1
0
        /// <summary>
        /// 初始化aop
        /// </summary>
        private void InitAOPConsumer()
        {
            try
            {
                _beforeConsumer = _locator.GetInstance <IBeforeConsumer>();
            }
            catch (Exception)
            {
            }

            try
            {
                _afterConsumer = _locator.GetInstance <IAfterConsumer>();
            }
            catch (Exception)
            {
            }
        }
Beispiel #2
0
        private void InitConsumer()
        {
            try
            {
                _beforeConsumer = _locator.GetInstance <IBeforeConsumer>();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            try
            {
                _afterConsumer = _locator.GetInstance <IAfterConsumer>();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }