Class AutoModelsNotificationHandler
Notification handlers used by SourceCodeAuto.
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.ModelsBuilder
Assembly: Umbraco.Infrastructure.dll
Syntax
public sealed class AutoModelsNotificationHandler : INotificationHandler<UmbracoApplicationStartingNotification>, INotificationHandler<UmbracoRequestEndNotification>, INotificationHandler<ContentTypeCacheRefresherNotification>, INotificationHandler<DataTypeCacheRefresherNotification>
Remarks
supports SourceCodeAuto mode but not InMemoryAuto mode.
Constructors
View SourceAutoModelsNotificationHandler(ILogger<AutoModelsNotificationHandler>, IOptionsMonitor<ModelsBuilderSettings>, ModelsGenerator, ModelsGenerationError, IMainDom)
Initializes a new instance of the AutoModelsNotificationHandler class.
Declaration
public AutoModelsNotificationHandler(ILogger<AutoModelsNotificationHandler> logger, IOptionsMonitor<ModelsBuilderSettings> config, ModelsGenerator modelGenerator, ModelsGenerationError mbErrors, IMainDom mainDom)
Parameters
Type | Name | Description |
---|---|---|
ILogger<AutoModelsNotificationHandler> | logger | |
IOptionsMonitor<ModelsBuilderSettings> | config | |
ModelsGenerator | modelGenerator | |
ModelsGenerationError | mbErrors | |
IMainDom | mainDom |
Methods
View SourceHandle(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 |
Handle(UmbracoApplicationStartingNotification)
Handles the UmbracoApplicationStartingNotification notification
Declaration
public void Handle(UmbracoApplicationStartingNotification notification)
Parameters
Type | Name | Description |
---|---|---|
UmbracoApplicationStartingNotification | notification |
Handle(UmbracoRequestEndNotification)
Declaration
public void Handle(UmbracoRequestEndNotification notification)
Parameters
Type | Name | Description |
---|---|---|
UmbracoRequestEndNotification | notification |