コード例 #1
0
        /// <summary>
        /// Gets a single instance of CommunicationMgr
        /// </summary>
        /// <returns>an instance of CommunicationMgr</returns>
        public static CommunicationMgr GetInstance(ILog log4NetInstance)
        {
            if (_communicationMgr == null)
            {
                _communicationMgr = new CommunicationMgr(log4NetInstance);
            }

            return(_communicationMgr);
        }
コード例 #2
0
        /// <summary>
        /// Gets a single instance of CommunicationMgr
        /// </summary>
        /// <returns>an instance of CommunicationMgr</returns>
        public static CommunicationMgr GetInstance()
        {
            if (_communicationMgr == null)
            {
                _communicationMgr = new CommunicationMgr();
            }

            return(_communicationMgr);
        }