Class OutOfDateModelsStatus
Used to track if ModelsBuilder models are out of date/stale
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.ModelsBuilder
Assembly: cs.temp.dll.dll
Syntax
public sealed class OutOfDateModelsStatus : INotificationHandler<ContentTypeCacheRefresherNotification>
Constructors
OutOfDateModelsStatus(IOptions<ModelsBuilderSettings>, IHostingEnvironment)
Initializes a new instance of the Out
Declaration
public OutOfDateModelsStatus(IOptions<ModelsBuilderSettings> config, IHostingEnvironment hostingEnvironment)
Parameters
Type | Name | Description |
---|---|---|
IOptions<Models |
config | |
IHosting |
hostingEnvironment |
Properties
IsEnabled
Gets a value indicating whether flagging out of date models is enabled
Declaration
public bool IsEnabled { get; }
Property Value
Type | Description |
---|---|
System. |
IsOutOfDate
Gets a value indicating whether models are out of date
Declaration
public bool IsOutOfDate { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Clear()
Declaration
public void Clear()
Handle(ContentTypeCacheRefresherNotification)
Declaration
public void Handle(ContentTypeCacheRefresherNotification notification)
Parameters
Type | Name | Description |
---|---|---|
Content |
notification |
Handle(DataTypeCacheRefresherNotification)
Declaration
public void Handle(DataTypeCacheRefresherNotification notification)
Parameters
Type | Name | Description |
---|---|---|
Data |
notification |