Exemple #1
0
        /// <summary>
        /// Registers the <c>ICompletesEventuallyProviderKeeper</c> plugin.
        /// </summary>
        /// <param name="keeper">The <c>ICompletesEventuallyProviderKeeper</c> to register.</param>
        public void RegisterCompletesEventuallyProviderKeeper(ICompletesEventuallyProviderKeeper keeper)
        {
            if (completesProviderKeeper != null)
            {
                completesProviderKeeper.Close();
            }

            completesProviderKeeper = keeper;
        }
Exemple #2
0
        /// <summary>
        /// Initializes the new <c>World</c> instance with the given name and configuration.
        /// </summary>
        /// <param name="name">The <c>string</c> name to assign to this <c>World</c>.</param>
        /// <param name="configuration">the <c>Configuration</c> to use to initialize various <c>World</c> facilities.</param>
        private World(string name, Configuration configuration)
        {
            Name                    = name;
            Configuration           = configuration;
            AddressFactory          = new BasicAddressFactory();
            completesProviderKeeper = new DefaultCompletesEventuallyProviderKeeper();
            loggerProviderKeeper    = new DefaultLoggerProviderKeeper();
            mailboxProviderKeeper   = new DefaultMailboxProviderKeeper();
            stages                  = new ConcurrentDictionary <string, Stage>();
            dynamicDependencies     = new ConcurrentDictionary <string, object>();

            var defaultStage = StageNamed(DefaultStage);

            configuration.StartPlugins(this, 0);
            configuration.StartPlugins(this, 1);

            StartRootFor(defaultStage, DefaultLogger);

            configuration.StartPlugins(this, 2);
            defaultStage.StartDirectoryScanner();
        }
Exemple #3
0
 public void RegisterCompletesEventuallyProviderKeeper(ICompletesEventuallyProviderKeeper keeper)
 {
 }
Exemple #4
0
 /// <summary>
 /// Registers the <c>ICompletesEventuallyProviderKeeper</c> plugin.
 /// </summary>
 /// <param name="keeper">The <c>ICompletesEventuallyProviderKeeper</c> to register.</param>
 public void RegisterCompletesEventuallyProviderKeeper(ICompletesEventuallyProviderKeeper keeper)
 {
     _completesProviderKeeper.Close();
     _completesProviderKeeper = keeper;
 }