Skip to main content

HibernationOptions.StoragePath Property

Specifies a path to a server directory where to store hibernated documents.

Namespace: DevExpress.Web.Office

Assembly: DevExpress.AspNetCore.Core.v24.1.dll

NuGet Package: DevExpress.AspNetCore.Core

Declaration

public string StoragePath { get; set; }

Property Value

Type Description
String

A path to a server directory.

Remarks

The example below demonstrates how to configure hibernation settings:

builder.Services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
builder.Services.AddDevExpressControls(options => {
    options.AddSpreadsheet(
        spreadsheetOptions => {
            spreadsheetOptions
                .AddHibernation( hibernationOptions => {
                    hibernationOptions.StoragePath = Path.Combine(builder.Environment.ContentRootPath, "HibernationStorage");
                    hibernationOptions.Timeout = TimeSpan.FromMinutes(20);
                    hibernationOptions.DocumentsDisposeTimeout = TimeSpan.FromDays(2);
                    hibernationOptions.AllDocumentsOnApplicationEnd = true;
                });
        }
    );
});

Refer to the following section for more information: Hibernate a Document.

See Also