Skip to content

A tool to extract saga data from NServiceBus.Persistence.AzureStorage for import into NServiceBus.Persistence.CosmosDB

License

Notifications You must be signed in to change notification settings

Particular/Particular.AzureTable.Export

Repository files navigation

Particular.AzureTable.Export

A tool to extract saga data from Azure Table storage (used by NServiceBus.Persistence.AzureStorage or NServiceBus.Persistence.AzureTable) for import into Cosmos DB to use with NServiceBus.Persistence.CosmosDB.

Running tests locally

All test projects use NUnit. The test projects can be executed using the test runner included with Visual Studio or by using the dotnet test command from the command line.

The test projects require access to Azure Table Storage and Cosmos DB for tests to pass.

Azure Storage emulator set up

Although it's deprecated, the tests can use the Azure Storage Emulator with no further configuration.

Using the Azure Storage service

To use a created Azure Storage Account, set an environment variable named AzureStoragePersistence_ConnectionString with a connection string for your Storage Account.

Cosmos DB emulator set up

The local Cosmos DB emulator can be used without configuring a connection string.

The Cosmos DB Emulator, including a data explorer, can be located at https://localhost:8081/_explorer/index.html.

Once the emulator is setup, create a Database named CosmosDBPersistence.

Using the Cosmos DB service

To create a Cosmos DB Core (SQL) Account refer to the Microsoft instructions for managing Accounts.

Once a Cosmos DB account is setup, you can use the Azure Cosmos explorer to create a Database named CosmosDBPersistence which is required by the test projects.

To use the created Cosmos DB Account, set an environment variable named CosmosDBPersistence_ConnectionString with a Cosmos DB connection string for your Account.

About

A tool to extract saga data from NServiceBus.Persistence.AzureStorage for import into NServiceBus.Persistence.CosmosDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages