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 OutOfDateModelsStatus class.
Declaration
public OutOfDateModelsStatus(IOptionsMonitor<ModelsBuilderSettings> config, IHostingEnvironment hostingEnvironment)
Parameters
Type | Name | Description |
---|---|---|
IOptionsMonitor<ModelsBuilderSettings> | config | |
IHostingEnvironment | 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.Boolean |
IsOutOfDate
Gets a value indicating whether models are out of date
Declaration
public bool IsOutOfDate { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
View SourceClear()
Declaration
public void Clear()
Handle(ContentTypeCacheRefresherNotification)
Declaration
public void Handle(ContentTypeCacheRefresherNotification notification)
Parameters
Type | Name | Description |
---|---|---|
ContentTypeCacheRefresherNotification | notification |
Handle(DataTypeCacheRefresherNotification)
Declaration
public void Handle(DataTypeCacheRefresherNotification notification)
Parameters
Type | Name | Description |
---|---|---|
DataTypeCacheRefresherNotification | notification |