rebus-org / Rebus.AzureBlobs

:bus: Azure Blobs-based databus storage for Rebus
https://mookid.dk/category/rebus
Other
3 stars 5 forks source link
attachment azure-blob azure-blob-storage azure-storage databus sagas

Rebus.AzureBlobs

install from nuget

Provides Azure Blobs-based implementation for Rebus of

You can configure the blob-based data bus like this:

var storageAccount = CloudStorageAccount.Parse(connectionString);

Configure.With(...)
    .(...)
    .DataBus(d => d.StoreInBlobStorage(storageAccount, "container-name"))
    .Start();

or, if you're using Rebus 5 or earlier, you need to do it like this:

var storageAccount = CloudStorageAccount.Parse(connectionString);

Configure.With(...)
    .(...)
    .Options(o => o.EnableDataBus().StoreInBlobStorage(storageAccount, "container-name"))
    .Start();