Class BatchedDatabaseServerMessenger
An IServerMessenger implementation that works by storing messages in the database.
Namespace: Umbraco.Cms.Infrastructure.Sync
Assembly: Umbraco.Infrastructure.dll
Syntax
public class BatchedDatabaseServerMessenger : DatabaseServerMessenger, IServerMessenger
Constructors
View SourceBatchedDatabaseServerMessenger(IMainDom, CacheRefresherCollection, IServerRoleAccessor, ILogger<BatchedDatabaseServerMessenger>, ISyncBootStateAccessor, IHostingEnvironment, ICacheInstructionService, IJsonSerializer, IRequestCache, IRequestAccessor, LastSyncedFileManager, IOptionsMonitor<GlobalSettings>)
Initializes a new instance of the BatchedDatabaseServerMessenger class.
Declaration
public BatchedDatabaseServerMessenger(IMainDom mainDom, CacheRefresherCollection cacheRefreshers, IServerRoleAccessor serverRoleAccessor, ILogger<BatchedDatabaseServerMessenger> logger, ISyncBootStateAccessor syncBootStateAccessor, IHostingEnvironment hostingEnvironment, ICacheInstructionService cacheInstructionService, IJsonSerializer jsonSerializer, IRequestCache requestCache, IRequestAccessor requestAccessor, LastSyncedFileManager lastSyncedFileManager, IOptionsMonitor<GlobalSettings> globalSettings)
Parameters
Type | Name | Description |
---|---|---|
IMainDom | mainDom | |
CacheRefresherCollection | cacheRefreshers | |
IServerRoleAccessor | serverRoleAccessor | |
ILogger<BatchedDatabaseServerMessenger> | logger | |
ISyncBootStateAccessor | syncBootStateAccessor | |
IHostingEnvironment | hostingEnvironment | |
ICacheInstructionService | cacheInstructionService | |
IJsonSerializer | jsonSerializer | |
IRequestCache | requestCache | |
IRequestAccessor | requestAccessor | |
LastSyncedFileManager | lastSyncedFileManager | |
IOptionsMonitor<GlobalSettings> | globalSettings |
Methods
View SourceDeliverRemote(ICacheRefresher, MessageType, Nullable<IEnumerable<Object>>, String)
Declaration
protected override void DeliverRemote(ICacheRefresher refresher, MessageType messageType, IEnumerable<object>? ids = null, string json = null)
Parameters
Type | Name | Description |
---|---|---|
ICacheRefresher | refresher | |
MessageType | messageType | |
System.Nullable<IEnumerable<System.Object>> | ids | |
System.String | json |
SendMessages()
Called to send/commit the queued messages created with the Perform methods
Declaration
public override void SendMessages()