AzureReportingConfigurator.UseAzureEnvironment(WebDocumentViewerConfigurationBuilder) Method
Implements Azure storage cache for Devexpress Reporting documents and reports.
Namespace: DevExpress.AspNetCore.Reporting.Azure
Assembly: DevExpress.AspNetCore.Reporting.v24.1.Azure.dll
NuGet Package: DevExpress.AspNetCore.Reporting.Azure
Declaration
public static WebDocumentViewerConfigurationBuilder UseAzureEnvironment(
this WebDocumentViewerConfigurationBuilder viewerConfigurator
)
Parameters
Name | Type | Description |
---|---|---|
viewerConfigurator | WebDocumentViewerConfigurationBuilder | A WebDocumentViewerConfigurationBuilder that constructs the Web Document Viewer object for which caching is implemented. |
Returns
Type | Description |
---|---|
WebDocumentViewerConfigurationBuilder | A WebDocumentViewerConfigurationBuilder that can be used to further configure Web Document Viewer services. |
Remarks
If you call the UseAzureEnvironment()
method without arguments in your application, implement and register the following services:
- IBlobServiceClientProvider
- ITableServiceClientProvider
- IServiceBusAdministrationClientProvider
- IServiceBusClientProvider
The Web Document Viewer is stateful and employs two levels of server-side caching to prevent redundant report creation.
Reports are cached in memory for a specified duration, even after closing the browser, but scaling with multiple servers can lead to issues if a server without the cached data handles a new request.
The issues are more about shared state and inter-server communication than specifically about Azure. When you create a new DevExpress Reporting ASP.NET Core application using templates, you have the option to specify document cache storage type and adjust the implementation as needed. For more information, review the following help topics:
- Use Visual Studio Templates to Create an ASP.NET Core Application with a Document Viewer
- Use .NET CLI Template to Create a Reporting App with Document Viewer
The UseAzureCachedReportSourceBuilder
method is an alternative to these types of document cache storage. It uses Azure services to implement document caching.
The UseAzureCachedReportSourceBuilder
method creates the following tables in the storage account:
- dxxrcommonstorage
- dxxrdocumentmetadata
- dxxrdocumentstructure
- dxxrexporteddocuments
- dxxrreports
- dxxrvsearch
You can allocate separate storage for reporting cache and configure expiration times for cached records in the Azure portal.
The goals of the UseAzureCachedReportSourceBuilder
method and the UseAzureEnvironment
method are the same. However, the UseAzureEnvironment
method allows you to process events for a generated document object, while the UseAzureCachedReportSourceBuilder
method works with serialized objects.
For more information review the following help topics:
- Web Document Viewer Cache Management
- Microsoft Azure Integration Specifics
- Web Farm and Web Garden Support