Skip to main content
A newer version of this page is available. .

WebDocumentViewerConfigurationBuilder.UseEmptyStoragesCleaner() Method

Replaces the service used to clean the document storage with an empty service, to avoid automatic cleaning of this storage.

Namespace: DevExpress.AspNetCore.Reporting

Assembly: DevExpress.AspNetCore.Reporting.v18.2.dll

Declaration

public WebDocumentViewerConfigurationBuilder UseEmptyStoragesCleaner()

Returns

Type Description
WebDocumentViewerConfigurationBuilder

A WebDocumentViewerConfigurationBuilder that can be used to further configure the Web Document Viewer services.

Remarks

According to the time settings specified in the CacheCleanerSettings and StorageCleanerSettings classes, the default cleaner service periodically checks if the cache and file storage (FileReportStorage, FileDocumentStorage and FileExportedDocumentStorage) contain reports/documents/exported documents whose lifetime exceeds a certain amount of time. If such reports/documents/exported documents are found, they are deleted. Call the UseEmptyStoragesCleaner method to register an empty storage cleaner instead of the default one, so that documents are not removed automatically.

See Also