コード例 #1
0
 public static string ToClusterNonSeedNodeSystemConfig(this NodeConfiguration conf, ISqlNodeDbConfiguration persistence, params INodeNetworkAddress[] seeds)
 {
     return(ActorSystemBuilder.New()
            .Log(conf.LogLevel)
            .ClusterNonSeed(conf, seeds)
            .SqlPersistence(persistence)
            .BuildHocon());
 }
コード例 #2
0
ファイル: ShopNode.cs プロジェクト: lulzzz/GridDomain.Shop
        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();
        }
コード例 #3
0
 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());
 }
コード例 #4
0
 private static string GetConfig()
 {
     return(ActorSystemBuilder.New()
            .Log(LogEventLevel.Verbose, null, true)
            .DomainSerialization()
            .RemoteActorProvider()
            .Remote(new NodeNetworkAddress())
            .InMemoryPersistence()
            .BuildHocon());
 }