Skip to content

DapperMaticWebhook ​

Namespace: MJCZone.DapperMatic.AspNetCore.Models

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

A web address told of the changes made through DapperMatic to the tables it names: each change is noted in the datasource, in the write's transaction, and sent from there in order, retried until the address takes it. A message names the table, the action and the keys of the rows, never other columns; it is signed with the secret (<c>X-DapperMatic-Signature: sha256=…</c>, an HMAC of <c>{timestamp}.{body}</c>).

sealed public

Contents ​

Constructors (1) | Methods (4) | Properties (11)

Constructors ​

DapperMaticWebhook ​

csharp
DapperMaticWebhook()

Methods ​

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

Name ​

Gets or sets the name, unique within its tenant.

Type: string

Url ​

Gets or sets the address messages are posted to: <c>https://</c>, or <c>http://</c>.

Type: string

Secret ​

Gets or sets the secret messages are signed with, or null to send them unsigned.

Type: string?

DatasourceId ​

Gets or sets the datasource it hears, or null for every one.

Type: string?

Schemas ​

Gets the schemas it hears, by name or pattern; empty for all.

Type: List&lt;string&gt;

Tables ​

Gets the tables it hears, by name or pattern; empty for all.

Type: List&lt;string&gt;

Actions ​

Gets or sets what it hears.

Type: DapperMaticWebhookActions

Tenant ​

Gets or sets the tenant whose changes it hears, as one a tenant's administrator keeps: rows marked with the tenant, or the tables of the tenant's schema or datasource. Null for one of the whole application, which hears every tenant's.

Type: string?

Headers ​

Gets headers sent with each message, such as an authorization the receiver expects.

Type: Dictionary&lt;string, string&gt;

Enabled ​

Gets or sets a value indicating whether it is sent messages; a disabled one keeps its place.

Type: bool

Source ​

Gets or sets where it came from: code, configuration, or the webhooks kept by DapperMatic, whose addresses may not reach private networks.

Type: string?