Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HibernationOptions.StoragePath Property

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

Namespace: DevExpress.Web.Office

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

NuGet Package: DevExpress.AspNetCore.Core

#Declaration

C#
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