示例#1
0
        public static Config JournalConfig()
        {
            if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR")))
            {
                return(JournalConfig(Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR")));
            }

            return(JournalConfig(WindowsAzureStorageEmulatorFixture.GenerateConnStr()));
        }
示例#2
0
        public static Config Config()
        {
            var azureConfig =
                !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR"))
                    ? AzureStorageConfigHelper.AzureConfig(Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR"))
                    : AzureStorageConfigHelper.AzureConfig(WindowsAzureStorageEmulatorFixture.GenerateConnStr());

            return(azureConfig);
        }
        private static Config Config()
        {
            var connectionString = Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR");

            if (string.IsNullOrEmpty(connectionString))
            {
                connectionString = WindowsAzureStorageEmulatorFixture.GenerateConnStr();
            }

            return(ConfigurationFactory.ParseString(@"
akka {
    loglevel = DEBUG
    log-config-on-start = off
    test.single-expect-default = 30s

    persistence {
        publish-plugin-commands = on

        journal {
            plugin = ""akka.persistence.journal.azure-table""

            azure-table {
                connection-string = """ + connectionString + @"""
                connect-timeout = 3s
                request-timeout = 3s
                verbose-logging = on
            }
        }

        query {
            journal {
                azure-table {
                    write-plugin = ""akka.persistence.journal.azure-table""
                    refresh-interval = 1s
		            max-buffer-size = 150
                }
            }
        }

        snapshot-store {
            plugin = ""akka.persistence.snapshot-store.azure-blob-store""
        }
    }
}

akka.persistence.snapshot-store.azure-blob-store {
    class = ""Akka.Persistence.Azure.Snapshot.AzureBlobSnapshotStore, Akka.Persistence.Azure""
    connection-string = """ + connectionString + @"""
    container-name = ""default""
    connect-timeout = 3s
    request-timeout = 3s
    verbose-logging = on
    plugin-dispatcher = ""akka.actor.default-dispatcher""
}"));
        }
示例#4
0
        public static Config Config()
        {
            var azureConfig =
                !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR"))
                    ? AzureStorageConfigHelper.AzureConfig(Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR"))
                    : AzureStorageConfigHelper.AzureConfig(WindowsAzureStorageEmulatorFixture.GenerateConnStr());

            TableName = azureConfig.GetString("akka.persistence.journal.azure-table.table-name");

            return(azureConfig);
        }