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