/// <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; }
/// <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(); }
public void RegisterCompletesEventuallyProviderKeeper(ICompletesEventuallyProviderKeeper keeper) { }
/// <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; }