View Source
Class DatabaseServerMessenger
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public abstract class DatabaseServerMessenger : ServerMessengerBase, IServerMessenger
Constructors
View Source
DatabaseServerMessenger(IMainDom, CacheRefresherCollection, IServerRoleAccessor, ILogger<DatabaseServerMessenger>, Boolean, ISyncBootStateAccessor, IHostingEnvironment, ICacheInstructionService, IJsonSerializer, LastSyncedFileManager, IOptionsMonitor<GlobalSettings>)
Declaration
protected DatabaseServerMessenger(IMainDom mainDom, CacheRefresherCollection cacheRefreshers, IServerRoleAccessor serverRoleAccessor, ILogger<DatabaseServerMessenger> logger, bool distributedEnabled, ISyncBootStateAccessor syncBootStateAccessor, IHostingEnvironment hostingEnvironment, ICacheInstructionService cacheInstructionService, IJsonSerializer jsonSerializer, LastSyncedFileManager lastSyncedFileManager, IOptionsMonitor<GlobalSettings> globalSettings)
Parameters
Properties
View Source
CacheInstructionService
Declaration
protected ICacheInstructionService CacheInstructionService { get; }
Property Value
View Source
GlobalSettings
Declaration
public GlobalSettings GlobalSettings { get; }
Property Value
View Source
JsonSerializer
Declaration
protected IJsonSerializer JsonSerializer { get; }
Property Value
View Source
LocalIdentity
Gets the unique local identity of the executing AppDomain.
Declaration
protected string LocalIdentity { get; }
Property Value
Type |
Description |
System.String |
|
View Source
Logger
Declaration
protected ILogger<DatabaseServerMessenger> Logger { get; }
Property Value
Methods
View Source
DeliverRemote(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 |
|
View Source
Dispose()
Declaration
View Source
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
View Source
EnsureInitialized()
Returns true if initialization was successfull (i.e. Is MainDom)
Declaration
protected bool EnsureInitialized()
Returns
Type |
Description |
System.Boolean |
|
View Source
RequiresDistributed(ICacheRefresher, MessageType)
Declaration
protected override bool RequiresDistributed(ICacheRefresher refresher, MessageType dispatchType)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
Sync()
Synchronize the server (throttled).
Declaration
public override void Sync()