IOT Dash
Public Member Functions | Protected Member Functions | Properties | List of all members
IotDash.Services.History.HostedHistoryService Class Reference
Inheritance diagram for IotDash.Services.History.HostedHistoryService:
Inheritance graph
[legend]
Collaboration diagram for IotDash.Services.History.HostedHistoryService:
Collaboration graph
[legend]

Public Member Functions

override HistoryWriter ManagerFactory (IotInterface entry)
 
override bool NeedsManager (IotInterface entry)
 
override object GetKey (IotInterface entity)
 
 HostedHistoryService (IServiceProvider provider)
 
override Task OnReceive (object? sender, SaveChangesEventArgs< IotInterface > msg)
 
async Task StartAsync (CancellationToken cancellationToken)
 
Task StopAsync (CancellationToken cancellationToken)
 
- Public Member Functions inherited from IotDash.Services.Domain.AEntityManagerService< IotInterface, HistoryWriter >
 AEntityManagerService (ILogger logger)
 
abstract Task OnReceive (object? sender, SaveChangesEventArgs< TEntity > msg)
 
abstract TManager ManagerFactory (TEntity entity)
 
abstract bool NeedsManager (TEntity entity)
 
abstract object GetKey (TEntity entity)
 
async Task Refresh (IEnumerable< TEntity > entries)
 
void Dispose ()
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from IotDash.Services.Domain.AEntityManagerService< IotInterface, HistoryWriter >
delegate Task AfterManagerUpHandler (TEntity entity, TManager manager)
 
delegate Task BeforeManagerDownHandler (TEntity entity, TManager manager)
 
virtual void Dispose (bool disposing)
 

Properties

IServiceProvider ServiceProvider [get]
 
- Properties inherited from IotDash.Services.Domain.AEntityManagerService< IotInterface, HistoryWriter >
bool DisposedValue [get]
 

Additional Inherited Members

- Protected Attributes inherited from IotDash.Services.Domain.AEntityManagerService< IotInterface, HistoryWriter >
readonly ILogger logger
 
readonly IManagerColleciton< TEntity, TManager > managers
 
- Events inherited from IotDash.Services.Domain.AEntityManagerService< IotInterface, HistoryWriter >
AfterManagerUpHandler AfterManagerUp
 
BeforeManagerDownHandler BeforeManagerDown
 

Detailed Description

This hosted service is responsible for managing HistoryWriters. As the database changes, it updates an internal collection of them. At all times there is exactly one HistoryWriter for each interface which returns true from IotInterface.NeedsWriter().

Member Function Documentation

◆ Dispose()

override void IotDash.Services.History.HostedHistoryService.Dispose ( bool  disposing)
inlineprotectedvirtual

The documentation for this class was generated from the following file: