Example #1
0
        static void WatchHalo2()
        {
            Xbox notifer = new Xbox();

            notifer.ConnectToIP(XBox.DebugIP.ToString());
            notifer.EnableNotificationSession = true;
            notifer.RegisterNotificationSession();
            while (MainThreadRunning)
            {
                notifer.ReceiveNotifications();
                foreach (string note in notifer.Notifications)
                {
                    if (note == "Test")
                    {
                        bool test = true;
                    }
                }
                notifer.Notifications.Clear();
            }
            notifer.Disconnect();
        }