Exemple #1
0
        /// <summary>
        /// 系统初始化的时候执行
        /// </summary>
        public static void Initialize()
        {
            if (m_Instance == null)
            {
                lock (locker)
                {
                    if (m_Instance == null)
                    {
                        m_Instance = new InstructEngine();

                        m_Instance.DriverList = new Dictionary <int, InstructDriver>();
                        foreach (PassportClient client in PassportBO.PassportClientList)
                        {
                            m_Instance.DriverList.Add(client.ClientID, new InstructDriver(client));
                        }
                        m_Instance.CreateEventHook();
                    }
                }
            }
        }
Exemple #2
0
        /// <summary>
        /// 系统初始化的时候执行
        /// </summary>
        public static void Initialize()
        {
            if (m_Instance == null)
            {
                lock (locker)
                {
                    if (m_Instance == null)
                    {
                        m_Instance = new InstructEngine();

                        m_Instance.DriverList = new Dictionary<int, InstructDriver>();
                        foreach (PassportClient client in PassportBO.PassportClientList)
                        {
                            m_Instance.DriverList.Add(client.ClientID, new InstructDriver(client));
                        }
                        m_Instance.CreateEventHook();
                    }
                }
            }
        }