Class AdapterDeploymentContract

Namespace
MirrorPulse.Adapter.Sdk
Assembly
MirrorPulse.Adapter.Sdk.dll

Message names, capability identifiers and validators for deployment health and package update discovery.

public static class AdapterDeploymentContract
Inheritance
AdapterDeploymentContract
Inherited Members

Remarks

Advertise either capability only after implementing its exchange. A Worker sends reports and responds to update requests only when the Host selects the corresponding capability.

Fields

CheckUpdateMessage

public const string CheckUpdateMessage = "CheckAdapterUpdate"

Field Value

string

HealthReportMessage

public const string HealthReportMessage = "AdapterHealthReport"

Field Value

string

MaximumHealthIssues

public const int MaximumHealthIssues = 16

Field Value

int

StructuredHealthCapability

public const string StructuredHealthCapability = "structured-health"

Field Value

string

UpdateDiscoveryCapability

public const string UpdateDiscoveryCapability = "update-discovery"

Field Value

string

UpdateOfferMessage

public const string UpdateOfferMessage = "AdapterUpdateOffer"

Field Value

string

Methods

ValidateHealthIssue(AdapterConfigurationForm, AdapterHealthIssue)

Checks that the health reason is supported and any field key is applicable in the signed form.

public static void ValidateHealthIssue(AdapterConfigurationForm form, AdapterHealthIssue issue)

Parameters

form AdapterConfigurationForm
issue AdapterHealthIssue

Remarks

Credential reasons can name a password field. Source and Worker failures are deployment-wide.

ValidateHealthReport(AdapterConfigurationForm, AdapterHealthReport)

Checks the issue count, uniqueness and field bindings of a replacement health report.

public static void ValidateHealthReport(AdapterConfigurationForm form, AdapterHealthReport report)

Parameters

form AdapterConfigurationForm
report AdapterHealthReport

Remarks

Send an empty list when the issues clear.

ValidateUpdateOffer(AdapterPackageIdentity, AdapterPackageUpdateOffer)

Checks package identity, version ordering and safe location before treating an update offer as actionable.

public static void ValidateUpdateOffer(AdapterPackageIdentity installed, AdapterPackageUpdateOffer offer)

Parameters

installed AdapterPackageIdentity
offer AdapterPackageUpdateOffer

Remarks

The Host separately verifies the downloaded package and its signature before registering the new version.