public StateStorageBridgeActivator(string name, ClusterActorSystem system, IGrainStorage storage, ILoggerFactory loggerFactory)
 {
     this.name          = name;
     this.system        = system;
     this.storage       = storage;
     this.loggerFactory = loggerFactory;
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 static IPEndPoint GetSiloIpAddress(ClusterActorSystem system) => system.Silo.SiloAddress.Endpoint;
Esempio n. 4
0
 internal EmbeddedActorSystem(ClientActorSystem client, ClusterActorSystem cluster)
 {
     Client  = client;
     Cluster = cluster;
 }