This module stores files in a Raven DB instance. The files will be stored alongside the meta-objects as attachments. Redakt offers Raven DB integration through an optional NuGet package. This feature can only be used in combination with the Raven DB data store module and uses the same connection as the configured Raven DB instance.
The Raven DB Attachment file storage module is part of the Raven DB provider package. Install the package with the NuGet package manager or the Package Manager Console.
PM> Install-Package Redakt.Providers.RavenDb
Register Raven DB Attachment services in the
ConfigureServices() method of your project's
Startup.cs file by adding an
AddRavenAttachmentFileStore() call to the Redakt builder instance. The order in which services are added to the Redakt builder is not important.
public void ConfigureServices(IServiceCollection services)
// ... framework and other services here
var builder = services.AddRedakt();
builder.AddRavenDbDataStore(); // Can only be used in combination with Raven DB database moduele.
// ... other Redakt services
The Raven DB Attachment file storage module uses the same data connection as the Raven DB database module and does not require any additional configuration.