Skip to content

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 ​

Methods ​

MethodSummary
RunOnceAsyncReads 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