Ejemplo n.º 1
0
 /// <summary>
 /// Registers the <c>ILoggerProviderKeeper</c> plugin.
 /// </summary>
 /// <param name="keeper">The <c>ILoggerProviderKeeper</c> to register.</param>
 public void RegisterLoggerProviderKeeper(ILoggerProviderKeeper keeper)
 {
     if (_loggerProviderKeeper != null)
     {
         _loggerProviderKeeper.Close();
     }
     _loggerProviderKeeper = keeper;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initiates the <c>World</c> terminate process if the process has not already been initiated.
        /// </summary>
        public void Terminate()
        {
            if (!IsTerminated)
            {
                foreach (var stage in stages.Values)
                {
                    stage.Stop();
                }

                loggerProviderKeeper.Close();
                mailboxProviderKeeper.Close();
                completesProviderKeeper.Close();
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Registers the <c>ILoggerProviderKeeper</c> plugin.
 /// </summary>
 /// <param name="keeper">The <c>ILoggerProviderKeeper</c> to register.</param>
 public void RegisterLoggerProviderKeeper(ILoggerProviderKeeper keeper)
 {
     _loggerProviderKeeper.Close();
     _loggerProviderKeeper = keeper;
 }