/// <summary>Initializes a new instance of the <see cref="Dispatchers" /> class.</summary> /// <param name="system">The system.</param> /// <param name="prerequisites">The prerequisites required for some <see cref="MessageDispatcherConfigurator"/> instances.</param> public Dispatchers(ActorSystem system, IDispatcherPrerequisites prerequisites) { _system = system; Prerequisites = prerequisites; _cachingConfig = new CachingConfig(prerequisites.Settings.Config); _defaultGlobalDispatcher = Lookup(DefaultDispatcherId); }
/// <summary> /// INTERNAL API /// /// Used when a plugin like Akka.Persistence needs to be able to load dispatcher configurations to the chain. /// </summary> internal void ReloadPrerequisites(IDispatcherPrerequisites prerequisites) { Prerequisites = prerequisites; _cachingConfig = new CachingConfig(prerequisites.Settings.Config); }
/// <summary> /// Takes a <see cref="Config"/> object, usually passed in via <see cref="Settings.Config"/> /// </summary> /// <param name="config">TBD</param> /// <param name="prerequisites">TBD</param> protected MessageDispatcherConfigurator(Config config, IDispatcherPrerequisites prerequisites) { Prerequisites = prerequisites; Config = new CachingConfig(config); }