Class DatabaseServerMessengerNotificationHandler
Ensures that distributed cache events are setup and the
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Cache
Assembly: cs.temp.dll.dll
Syntax
public sealed class DatabaseServerMessengerNotificationHandler : INotificationHandler<UmbracoApplicationStartingNotification>
Constructors
DatabaseServerMessengerNotificationHandler(IServerMessenger, IUmbracoDatabaseFactory, ILogger<DatabaseServerMessengerNotificationHandler>, IRuntimeState)
Initializes a new instance of the Database
Declaration
public DatabaseServerMessengerNotificationHandler(IServerMessenger serverMessenger, IUmbracoDatabaseFactory databaseFactory, ILogger<DatabaseServerMessengerNotificationHandler> logger, IRuntimeState runtimeState)
Parameters
Type | Name | Description |
---|---|---|
IServer |
serverMessenger | |
IUmbraco |
databaseFactory | |
ILogger<Database |
logger | |
IRuntime |
runtimeState |
Methods
Handle(UmbracoApplicationStartingNotification)
Declaration
public void Handle(UmbracoApplicationStartingNotification notification)
Parameters
Type | Name | Description |
---|---|---|
Umbraco |
notification |
Handle(UmbracoRequestEndNotification)
Clear the batch on end request
Declaration
public void Handle(UmbracoRequestEndNotification notification)
Parameters
Type | Name | Description |
---|---|---|
Umbraco |
notification |