Exemple #1
0
        internal static async Task DisableLiveTaskAsync()
        {
            lock (ConsoleSync)
            {
                if (ClientManager.Clients().Any(c => c.Publisher.PublishedStreams.Any()))
                {
                    Console.WriteLine();
                    Console.WriteLine("  ...live feeds disabled.");
                }
            }

            ClientManager.UnsubscribeAll();

            await UserDataManager.UnsubscribeAllAsync();
        }
Exemple #2
0
        internal static async Task DisableLiveTaskAsync()
        {
            lock (ConsoleSync)
            {
                if (ClientManager.Managers().Any(m => m.Controller.IsActive))
                {
                    Console.WriteLine();
                    Console.WriteLine("  ...live feeds disabled.");
                }
            }

            ClientManager.UnsubscribeAll();

            await UserDataManager.UnsubscribeAllAsync();
        }