Class PreviewRoutes
- Namespace
- Umbraco.Cms.Web.BackOffice.Routing
- Assembly
- Umbraco.Web.BackOffice.dll
Creates routes for the preview hub
public sealed class PreviewRoutes : IAreaRoutes
- Inheritance
-
PreviewRoutes
- Implements
-
IAreaRoutes
- Inherited Members
Constructors
PreviewRoutes(IOptions<GlobalSettings>, IHostingEnvironment, IRuntimeState)
public PreviewRoutes(IOptions<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment, IRuntimeState runtimeState)
Parameters
globalSettingsIOptions<GlobalSettings>hostingEnvironmentIHostingEnvironmentruntimeStateIRuntimeState
Methods
CreateRoutes(IEndpointRouteBuilder)
public void CreateRoutes(IEndpointRouteBuilder endpoints)
Parameters
endpointsIEndpointRouteBuilder
GetPreviewHubRoute()
Returns the path to the signalR hub used for preview
public string GetPreviewHubRoute()
Returns
- string
Path to signalR hub