Ejemplo n.º 1
0
        /// <summary>
        /// This method calls other project specific methods to perform action during application shutdown.
        /// </summary>
        public static void Shutdown()
        {
            logger.Info("Shutting down the application...");
            IBinder binder = BinderSingleton.Instance;

            if (binder == null)
            {
                logger.Fatal("Something serious happened to produce a null binder. Aborting application shutdown now!");
                return;
            }

            binder.Stop();
            binder.Cleanup();
        }
Ejemplo n.º 2
0
 public void TearDown()
 {
     //Testing the Cleanup lifecycle
     binder.Stop();
     binder.Cleanup();
 }
Ejemplo n.º 3
0
 public void Cleanup()
 {
     binderDelegate.Cleanup();
     instance = null;
 }