Skip to content

DapperMaticWebhookWorker ​

Namespace: MJCZone.DapperMatic.AspNetCore.Changes

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

Sends webhooks their messages: for each datasource and webhook, the changes noted since the last one it took, in order, one message each; a failed one is tried again after a growing wait, and dropped after MaxAttempts. Servers sharing a datasource take turns, by a lease.

Inheritance ​

Base Class: BackgroundService

sealed public

Contents ​

Constructors (1) | Methods (8) | Properties (1) | Fields (2)

Constructors ​

DapperMaticWebhookWorker ​

Initializes a new instance of the DapperMaticWebhookWorker class.

csharp
DapperMaticWebhookWorker(
    DapperMaticChangeLog log,
    IDapperMaticDatasourceRepository datasources,
    IDbConnectionFactory connections,
    IHttpClientFactory http,
    DapperMaticOptions} options,
    DapperMaticStoredAccess stored,
    DapperMaticWebhookWorker} logger)

Parameters ​

Methods ​

MethodSummary
RunOnceAsyncSends every webhook what is due to it, once: what the worker does every PollInterval....
StartAsync
StopAsync
Dispose
GetType
ToString
Equals
GetHashCode

RunOnceAsync ​

Sends every webhook what is due to it, once: what the worker does every PollInterval.

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

Fields ​

ClientName ​

The HTTP client webhooks given in code or configuration are sent with.

Type: object

GuardedClientName ​

The HTTP client webhooks kept through the API are sent with: it refuses internal addresses.

Type: object