/// <summary> /// Registers the <c>ILoggerProviderKeeper</c> plugin. /// </summary> /// <param name="keeper">The <c>ILoggerProviderKeeper</c> to register.</param> public void RegisterLoggerProviderKeeper(ILoggerProviderKeeper keeper) { if (this.loggerProviderKeeper != null) { this.loggerProviderKeeper.Close(); } this.loggerProviderKeeper = 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 RegisterLoggerProviderKeeper(ILoggerProviderKeeper keeper) { }
/// <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; }