Class OutOfDateModelsStatus
Used to track if ModelsBuilder models are out of date/stale
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.ModelsBuilder
Assembly: Umbraco.Infrastructure.dll
Syntax
public sealed class OutOfDateModelsStatus : INotificationHandler<ContentTypeCacheRefresherNotification>, INotificationHandler<DataTypeCacheRefresherNotification>, INotificationHandler
Constructors
View SourceOutOfDateModelsStatus(IOptionsMonitor<ModelsBuilderSettings>, IHostingEnvironment)
Initializes a new instance of the Out
Declaration
public OutOfDateModelsStatus(IOptionsMonitor<ModelsBuilderSettings> config, IHostingEnvironment hostingEnvironment)
Parameters
Type | Name | Description |
---|---|---|
IOptions |
config | |
IHosting |
hostingEnvironment |
Properties
View SourceIsEnabled
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
View SourceClear()
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 |