DapperMaticRealtimePoller
Namespace: MJCZone.DapperMatic.AspNetCore.Changes
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
Tells this server's subscriptions of the changes other servers made: the change table of each datasource subscriptions are open on is read every PollInterval.
Inheritance
Base Class: BackgroundService
sealed public
Contents
Constructors (1) | Methods (8) | Properties (1)
Constructors
DapperMaticRealtimePoller
Initializes a new instance of the DapperMaticRealtimePoller class.
csharp
DapperMaticRealtimePoller(
DapperMaticRealtimeHub hub,
DapperMaticChangeLog log,
IDapperMaticDatasourceRepository datasources,
IDbConnectionFactory connections,
DapperMaticOptions} options,
DapperMaticRealtimePoller} logger)Parameters
- hub (DapperMaticRealtimeHub) - The subscriptions open on this server.
- log (DapperMaticChangeLog) - Where the changes are noted.
- datasources (IDapperMaticDatasourceRepository) - The datasources.
- connections (IDbConnectionFactory) - Makes connections to them.
- options (DapperMaticOptions}) - The options.
- logger (DapperMaticRealtimePoller}) - The logger.
Methods
| Method | Summary |
|---|---|
| RunOnceAsync | Reads the changes noted since the last round, once, and tells the subscriptions they concern. |
| StartAsync | |
| StopAsync | |
| Dispose | |
| GetType | |
| ToString | |
| Equals | |
| GetHashCode |
RunOnceAsync
Reads the changes noted since the last round, once, and tells the subscriptions they concern.
csharp
Task RunOnceAsync(CancellationToken cancellationToken)Parameters
- cancellationToken (CancellationToken) - The cancellation token.
Returns
Type: Task
A task.
StartAsync
csharp
StartAsync()StopAsync
csharp
StopAsync()Dispose
csharp
Dispose()GetType
csharp
GetType()ToString
csharp
ToString()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()Properties
ExecuteTask
Type: object