Пример #1
0
        public static void Start()
        {
            if (singleton != null)
            {
                throw new InvalidOperationException("Only one instance of UdpListenerAdapter is allowed.");
            }

            singleton = new UdpListenerAdapter();
            singleton.Open();
        }
Пример #2
0
        public static void Start()
        {
            if (singleton != null)
            {
                throw new InvalidOperationException("Only one instance of UdpListenerAdapter is allowed.");
            }

            singleton = new UdpListenerAdapter();
            singleton.Open();
        }