Class NoopRequestPreviewService
A no-operation implementation of IRequestPreviewService that always returns false for preview mode.
Inheritance
object
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class NoopRequestPreviewService : IRequestPreviewService
Constructors
View SourceNoopRequestPreviewService()
Declaration
public NoopRequestPreviewService()
Methods
View SourceIsPreview()
Retrieves information on whether or not to output draft content for preview.
Declaration
public bool IsPreview()
Returns
| Type | Description |
|---|---|
| bool |