public StateStorageBridgeActivator(string name, ClusterActorSystem system, IGrainStorage storage, ILoggerFactory loggerFactory) { this.name = name; this.system = system; this.storage = storage; this.loggerFactory = loggerFactory; }
public override void Run() { var clusterId = RoleEnvironment.DeploymentId; var clusterMembershipStorage = RoleEnvironment.GetConfigurationSettingValue("DataConnectionString"); system = ActorSystem.Configure() .Cluster() .From(Configuration(clusterId, clusterMembershipStorage)) .Assemblies(Assembly.GetExecutingAssembly(), typeof(SubscribeHub).Assembly) .Bootstrapper <HubGateway.Bootstrapper>() .Done(); system.Start(wait: true); }
static IPEndPoint GetSiloIpAddress(ClusterActorSystem system) => system.Silo.SiloAddress.Endpoint;
internal EmbeddedActorSystem(ClientActorSystem client, ClusterActorSystem cluster) { Client = client; Cluster = cluster; }