protected ClusterShardingSpec() : base(new ClusterShardingSpecConfig())
{
_storageLocations = new[]
{
"akka.persistence.journal.leveldb.dir",
"akka.persistence.journal.leveldb-shared.store.dir",
"akka.persistence.snapshot-store.local.dir"
}.Select(s => new DirectoryInfo(Sys.Settings.Config.GetString(s))).ToArray();
_controller = new RoleName("controller");
_first = new RoleName("first");
_second = new RoleName("second");
_third = new RoleName("third");
_fourth = new RoleName("fourth");
_fifth = new RoleName("fifth");
_sixth = new RoleName("sixth");
_region = new Lazy<IActorRef>(() => CreateRegion("counter", false));
_rebalancingRegion = new Lazy<IActorRef>(() => CreateRegion("rebalancingCounter", false));
_persistentEntitiesRegion = new Lazy<IActorRef>(() => CreateRegion("PersistentCounterEntities", true));
_anotherPersistentRegion = new Lazy<IActorRef>(() => CreateRegion("AnotherPersistentCounter", true));
_persistentRegion = new Lazy<IActorRef>(() => CreateRegion("PersistentCounter", true));
_rebalancingPersistentRegion = new Lazy<IActorRef>(() => CreateRegion("RebalancingPersistentCounter", true));
_autoMigrateRegion = new Lazy<IActorRef>(() => CreateRegion("AutoMigrateRegionTest", true));
}