// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.SpaServices.Prerendering; using System; using System.Collections.Generic; namespace Microsoft.AspNetCore.Builder { /// /// Represents options for the SPA prerendering middleware. /// public class SpaPrerenderingOptions { /// /// Gets or sets an that the prerenderer will invoke before /// looking for the boot module file. /// /// This is only intended to be used during development as a way of generating the JavaScript boot /// file automatically when the application runs. This property should be left as null in /// production applications. /// public ISpaPrerendererBuilder BuildOnDemand { get; set; } /// /// Gets or sets the path, relative to your application root, of the JavaScript file /// containing prerendering logic. /// public string BootModulePath { get; set; } /// /// Gets or sets an array of URL prefixes for which prerendering should not run. /// public string[] ExcludeUrls { get; set; } /// /// Gets or sets a callback that will be invoked during prerendering, allowing you to pass additional /// data to the prerendering entrypoint code. /// public Action> SupplyData { get; set; } } }