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