Esempio n. 1
0
        /// <summary>
        /// Turn the rich pressence off.
        /// </summary>
        public void TurnOff()
        {
            //Remove all presences from queue, and clear it.
            rpc.DequeueAll();
            rpc.ClearPresence();
            rpc.Dispose();

            //Mark as not running.
            IsRunning = false;
        }
Esempio n. 2
0
 /// <summary>
 /// Turn the rich presence off.
 /// </summary>
 public RichPresenceClient TurnOff()
 {
     api.Logger.Log("Terminating rich presence.");
     //Remove all presences from queue, and clear it.
     rpc.DequeueAll();
     rpc.ClearPresence();
     rpc.Dispose();
     //Mark as not running.
     IsRunning = false;
     return(this);
 }
Esempio n. 3
0
        /// <summary>
        /// Turn the rich pressence off.
        /// </summary>
        public void TurnOff()
        {
            api.Logger.LogInfo("Terminating rich presence.");

            //Remove all presences from queue, and clear it.
            rpc.DequeueAll();
            rpc.ClearPresence();
            rpc.Dispose();

            //Mark as not running.
            IsRunning = false;
        }