Ejemplo n.º 1
0
        public string Build()
        {
            var jornalConnectionTimeoutSeconds = _dbConfiguration.JornalConnectionTimeoutSeconds;

            if (jornalConnectionTimeoutSeconds <= 0)
            {
                jornalConnectionTimeoutSeconds = 30;
            }

            var persistenceJournalConfig = @"
            journal {
                    plugin = ""akka.persistence.journal.sql-server""

                    sql-server {
                               class = """ + _sqlJournalType.AssemblyQualifiedShortName() + @"""
                               plugin-dispatcher = ""akka.actor.default-dispatcher""
                               connection-string =  """ + _dbConfiguration.JournalConnectionString + @"""
                               connection-timeout = " + jornalConnectionTimeoutSeconds + @"s
                               schema-name = dbo
                               table-name = """ + _dbConfiguration.JournalTableName + @"""
                               auto-initialize = on
                               timestamp-provider = ""Akka.Persistence.Sql.Common.Journal.DefaultTimestampProvider, Akka.Persistence.Sql.Common""
                               metadata-table-name = """ + _dbConfiguration.MetadataTableName + @"""
                               " + _eventAdatpersConfig.Build() + @"
                    }
            }
";

            return(persistenceJournalConfig);
        }
Ejemplo n.º 2
0
        public string Build()
        {
            var akkaPersistenceConfig =
                @"persistence {
                    publish-plugin-commands = on
" + _journalConfig.Build() + @"
" + _snapshotsConfig.Build() + @"
        }";

            return(akkaPersistenceConfig);
        }
Ejemplo n.º 3
0
        public string Build()
        {
            return(@"
                 journal {
                    plugin = ""akka.persistence.journal.inmem""
                    inmem {
                            class = ""Akka.Persistence.Journal.MemoryJournal, Akka.Persistence""
                            plugin-dispatcher = ""akka.actor.default-dispatcher""
                            " + _eventAdaptersConfig.Build() + @"
                                }
                        }
");
        }