public static string ToClusterNonSeedNodeSystemConfig(this NodeConfiguration conf, ISqlNodeDbConfiguration persistence, params INodeNetworkAddress[] seeds)
 {
     return(ActorSystemBuilder.New()
            .Log(conf.LogLevel)
            .ClusterNonSeed(conf, seeds)
            .SqlPersistence(persistence)
            .BuildHocon());
 }
Ejemplo n.º 2
0
        public void Start()
        {
            Log.Information($"Created shop node {NodeConfiguration.Name} at {NodeConfiguration.Address.Host} on port {NodeConfiguration.Address.PortNumber}");

            var actorSystemFactory = ActorSystemBuilder.New().Build(NodeConfiguration, new ShopNodeDbConfig());

            _gridDomainNode = new GridDomainNode(actorSystemFactory, _logger ?? Log.Logger, new ShopDomainConfiguration(ReadDbConnectionString));
            _gridDomainNode.Start().Wait();
        }
 public static string ToStandAloneSystemConfig(this NodeConfiguration conf, ISqlNodeDbConfiguration persistence, bool serializeMessagesCreators = false)
 {
     return(ActorSystemBuilder.New()
            .Log(conf.LogLevel)
            .DomainSerialization(serializeMessagesCreators)
            .RemoteActorProvider()
            .Remote(conf.Address)
            .SqlPersistence(persistence)
            .BuildHocon());
 }
 private static string GetConfig()
 {
     return(ActorSystemBuilder.New()
            .Log(LogEventLevel.Verbose, null, true)
            .DomainSerialization()
            .RemoteActorProvider()
            .Remote(new NodeNetworkAddress())
            .InMemoryPersistence()
            .BuildHocon());
 }