Class PreviewRoutes
Creates routes for the preview hub
Inheritance
System.Object
Namespace: Umbraco.Cms.Api.Management.Routing
Assembly: Umbraco.Cms.Api.Management.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 |
---|---|---|
IOptions<Global |
globalSettings | |
IHosting |
hostingEnvironment | |
IRuntime |
runtimeState |
Methods
View SourceCreateRoutes(IEndpointRouteBuilder)
Declaration
public void CreateRoutes(IEndpointRouteBuilder endpoints)
Parameters
Type | Name | Description |
---|---|---|
IEndpoint |
endpoints |
GetPreviewHubRoute()
Returns the path to the signalR hub used for preview
Declaration
public string GetPreviewHubRoute()
Returns
Type | Description |
---|---|
System. |
Path to signalR hub |