using System; namespace Microsoft.AspNetCore.SpaServices.Prerendering { /// /// Describes how to find the JavaScript code that performs prerendering. /// public class JavaScriptModuleExport { /// /// Creates a new instance of . /// /// The path to the JavaScript module containing prerendering code. public JavaScriptModuleExport(string moduleName) { ModuleName = moduleName; } /// /// Specifies the path to the JavaScript module containing prerendering code. /// public string ModuleName { get; private set; } /// /// If set, specifies the name of the CommonJS export that is the prerendering function to execute. /// If not set, the JavaScript module's default CommonJS export must itself be the prerendering function. /// public string ExportName { get; set; } } }