Class SimplifiedPublishedStateAssessor
Inheritance
System.Object
SimplifiedPublishedStateAssessor
Implements
Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class SimplifiedPublishedStateAssessor : Object, 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)
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 |
|
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | content |