Esempio n. 1
0
        public static async void StartAccountBroadcasterAsync()
        {
            await Task.Run(() =>
            {
                int previousAmount = 0;

                while (true)
                {
                    if (Bots.Count != previousAmount)
                    {
                        previousAmount = Bots.Count;

                        DashboardEndpoint.Broadcast <OverlookUpdate>();
                    }

                    Thread.Sleep(1100);
                }
            });
        }
Esempio n. 2
0
 private static void OngoingAttacks_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     DashboardEndpoint.Broadcast <AttacksUpdate>();
 }