Skip to main content
All docs
V26.1
  • HibernationOptions.StoragePath Property

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

    Namespace: DevExpress.Web.Office

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

    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