Esempio n. 1
0
        /// <summary>
        /// 单例模式获得器 饿汉模式
        /// </summary>
        /// <returns></returns>
        internal static ICoreDisparcher GetRevitFunction()
        {
            if (null == m_signalTag || null == m_signalTag.m_AOPResult)
            {
                m_signalTag = new DispatcherAOP();
                //制作AOP
                m_signalTag.m_AOPResult = (ICoreDisparcher)m_signalTag.GetTransparentProxy();
                //准备数据
                m_signalTag.m_AOPResult.PrepareData();

                //获取应用数量
                int appCount = m_signalTag.m_AOPResult.ApplicationCount();

                //循环准备
                for (int tempIndex = 0; tempIndex < appCount; tempIndex++)
                {
                    m_signalTag.m_AOPResult.PrepareOneApplication(tempIndex);
                }
            }

            return(m_signalTag.m_AOPResult);
        }
Esempio n. 2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public WrapperDispatcher()
 {
     //AOP中获得核心分发器
     m_useCoreDispatcher = DispatcherAOP.GetRevitFunction();
 }