Skip to main content

IPoolHubCallbacks

Namespace: Meshmakers.Octo.Communication.Contracts.Hubs

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

public interface IPoolHubCallbacks

Methods

UpdatePoolConfigurationAsync(String, String, PoolConfigurationDto)

Updates the pool configuration and deploys the communication adapters.

Task UpdatePoolConfigurationAsync(string tenantId, string poolName, PoolConfigurationDto poolConfigurationDto)

Parameters

tenantId String
Tenant identifier

poolName String
The name of the pool

poolConfigurationDto PoolConfigurationDto
Updated pool configuration

Returns

Task

DeployCommunicationAdapterAsync(String, PoolCommunicationAdapterDto)

Informs the pool that a new communication adapter has to be deployed.

Task DeployCommunicationAdapterAsync(string tenantId, PoolCommunicationAdapterDto poolCommunicationAdapter)

Parameters

tenantId String
Tenant identifier

poolCommunicationAdapter PoolCommunicationAdapterDto
Communication adapter data transfer object

Returns

Task

UndeployCommunicationAdapterAsync(String, PoolCommunicationAdapterDto)

Inform the pool that a communication adapter has to be removed from deployment.

Task UndeployCommunicationAdapterAsync(string tenantId, PoolCommunicationAdapterDto poolCommunicationAdapter)

Parameters

tenantId String
Tenant identifier

poolCommunicationAdapter PoolCommunicationAdapterDto
Communication adapter data transfer object

Returns

Task

PreUpdateTenantAsync(String)

Informs a pool that the tenant is being updated.

Task PreUpdateTenantAsync(string tenantId)

Parameters

tenantId String
Tenant identifier

Returns

Task

Remarks:

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