November Happy Hour will be moved to Thursday December 5th.

Class SimplifiedPublishedStateAssessor

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
SimplifiedPublishedStateAssessor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class SimplifiedPublishedStateAssessor : IPublishedStateAssessor

Constructors

SimplifiedPublishedStateAssessor()

Declaration
public SimplifiedPublishedStateAssessor()

SimplifiedPublishedStateAssessor(ITimeProvider)

Declaration
public SimplifiedPublishedStateAssessor(ITimeProvider timeProvider)
Parameters
Type Name Description
ITimeProvider timeProvider

SimplifiedPublishedStateAssessor(Func<DateTime>)

Declaration
public SimplifiedPublishedStateAssessor(Func<DateTime> requestTime)
Parameters
Type Name Description
System.Func<System.DateTime> requestTime

Methods

IsPublished(IContent, PublishedStateCondition)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines whether the specified IContent instance currently is in a published state using the provided conditions.

Declaration
public bool IsPublished(IContent content, PublishedStateCondition condition)
Parameters
Type Name Description
IContent content

The content that should be assessed.

PublishedStateCondition condition

The conditions of how the assessment should be done.

Returns
Type Description
System.Boolean

true if the content item is published; otherwise false.

Exceptions
Type Condition
System.ArgumentNullException

content

Implements

Extension Methods