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
HealthReportMessage
public const string HealthReportMessage = "AdapterHealthReport"
Field Value
MaximumHealthIssues
public const int MaximumHealthIssues = 16
Field Value
StructuredHealthCapability
public const string StructuredHealthCapability = "structured-health"
Field Value
UpdateDiscoveryCapability
public const string UpdateDiscoveryCapability = "update-discovery"
Field Value
UpdateOfferMessage
public const string UpdateOfferMessage = "AdapterUpdateOffer"
Field Value
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
formAdapterConfigurationFormissueAdapterHealthIssue
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
formAdapterConfigurationFormreportAdapterHealthReport
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
installedAdapterPackageIdentityofferAdapterPackageUpdateOffer
Remarks
The Host separately verifies the downloaded package and its signature before registering the new version.