/// <summary> /// 初始化aop /// </summary> private void InitAOPConsumer() { try { _beforeConsumer = _locator.GetInstance <IBeforeConsumer>(); } catch (Exception) { } try { _afterConsumer = _locator.GetInstance <IAfterConsumer>(); } catch (Exception) { } }
private void InitConsumer() { try { _beforeConsumer = _locator.GetInstance <IBeforeConsumer>(); } catch (Exception ex) { throw ex; } try { _afterConsumer = _locator.GetInstance <IAfterConsumer>(); } catch (Exception ex) { throw ex; } }