Beispiel #1
0
        protected void OnQuitApp()
        {
            // ... do something ...

            // can only be invoked in this class
            QuitEventHandler?.Invoke(this, EventArgs.Empty);
        }
Beispiel #2
0
 /// <summary>
 ///   Registers the given function to be run when somebody quits the IRC server.
 /// </summary>
 /// <param name = "handler">
 ///   The function to register.
 /// </param>
 public void RegisterOnQuitHook(QuitEventHandler handler)
 {
     AlarisBase.Instance.Connection.Listener.OnQuit += handler;
 }
Beispiel #3
0
 public void OnQuit()
 {
     QuitEventHandler?.Invoke(this, EventArgs.Empty);
 }