Skip to main content

IAdapterHubCallbacks

Namespace: Meshmakers.Octo.Communication.Contracts.Hubs

Interfaces of callbacks that can be called by the adapter hub.

public interface IAdapterHubCallbacks

Methods

AdapterConfigurationUpdatedAsync(String, AdapterConfigurationDto)

Informs an adapter that its configuration has been updated.

Task AdapterConfigurationUpdatedAsync(string tenantId, AdapterConfigurationDto adapterConfiguration)

Parameters

tenantId String
Tenant identifier

adapterConfiguration AdapterConfigurationDto
The adapter configuration data transfer object

Returns

Task

PreUpdateTenantAsync(String)

Informs an adapter that the tenant is being updated.

Task PreUpdateTenantAsync(string tenantId)

Parameters

tenantId String
Tenant identifier

Returns

Task

Remarks:

This disconnects the adapter from services. The adapter needs to retry connection after some time.

CkModelChangedAsync(String)

Informs an adapter that the tenant's Construction Kit model may have changed (CK model import, cache clear) and any in-process CK model cache must be invalidated.

Task CkModelChangedAsync(string tenantId)

Parameters

tenantId String
Tenant identifier

Returns

Task

Remarks:

Broadcast to all connected adapters; each adapter reacts only when the tenant matches its own. Unlike IAdapterHubCallbacks.PreUpdateTenantAsync(String) this does not restart the adapter — it only flushes caches.