/// <summary> /// Shortcut for creating a new actor system with the specified name and settings. /// </summary> /// <param name="name">The name of the actor system to create. The name must be uri friendly. /// <remarks>Must contain only word characters (i.e. [a-zA-Z0-9] plus non-leading '-'</remarks> /// </param> /// <param name="setup">The bootstrap setup used to help programmatically initialize the <see cref="ActorSystem"/>.</param> /// <returns>A newly created actor system with the given name and configuration.</returns> public static ActorSystem Create(string name, ActorSystemSetup setup) { var bootstrapSetup = setup.Get <BootstrapSetup>(); var appConfig = bootstrapSetup.FlatSelect(_ => _.Config).GetOrElse(ConfigurationFactory.Load()); return(CreateAndStartSystem(name, appConfig, setup)); }
/// <summary> /// Default HOCON settings for cluster metrics. /// </summary> /// <returns>TBD</returns> public static Config DefaultConfig() { return(ConfigurationFactory.FromResource <ClusterMetrics>("Akka.Cluster.Metrics.reference.conf")); }