Class PreviewRoutes
Creates routes for the preview hub
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.BackOffice.Routing
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public sealed class PreviewRoutes : IAreaRoutes
Constructors
View SourcePreviewRoutes(IOptions<GlobalSettings>, IHostingEnvironment, IRuntimeState)
Declaration
public PreviewRoutes(IOptions<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment, IRuntimeState runtimeState)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Options.IOptions<GlobalSettings> | globalSettings | |
| IHostingEnvironment | hostingEnvironment | |
| IRuntimeState | runtimeState |
Methods
View SourceCreateRoutes(IEndpointRouteBuilder)
Declaration
public void CreateRoutes(IEndpointRouteBuilder endpoints)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Routing.IEndpointRouteBuilder | endpoints |
GetPreviewHubRoute()
Returns the path to the signalR hub used for preview
Declaration
public string GetPreviewHubRoute()
Returns
| Type | Description |
|---|---|
| System.String | Path to signalR hub |