Class GatewayOrchestrator
Hosted service that orchestrates gateway startup: registers channels from config, auto-connects channels, auto-spawns agents, wires message routing, and registers JD.AI agents with OpenClaw.
public sealed class GatewayOrchestrator : IHostedService
- Inheritance
-
GatewayOrchestrator
- Implements
- Inherited Members
Constructors
GatewayOrchestrator(GatewayConfig, ChannelFactory, IChannelRegistry, AgentPoolService, AgentRouter, IEventBus, ILogger<GatewayOrchestrator>, IHostApplicationLifetime, OpenClawAgentRegistrar?, OpenClawBridgeChannel?, ICommandRegistry?)
public GatewayOrchestrator(GatewayConfig config, ChannelFactory channelFactory, IChannelRegistry channels, AgentPoolService agentPool, AgentRouter router, IEventBus events, ILogger<GatewayOrchestrator> logger, IHostApplicationLifetime hostLifetime, OpenClawAgentRegistrar? agentRegistrar = null, OpenClawBridgeChannel? openClawBridge = null, ICommandRegistry? commandRegistry = null)
Parameters
configGatewayConfigchannelFactoryChannelFactorychannelsIChannelRegistryagentPoolAgentPoolServicerouterAgentRoutereventsIEventBusloggerILogger<GatewayOrchestrator>hostLifetimeIHostApplicationLifetimeagentRegistrarOpenClawAgentRegistraropenClawBridgeOpenClawBridgeChannelcommandRegistryICommandRegistry
Methods
StartAsync(CancellationToken)
Triggered when the application host is ready to start the service.
public Task StartAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenIndicates that the start process has been aborted.
Returns
StopAsync(CancellationToken)
Triggered when the application host is performing a graceful shutdown.
public Task StopAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenIndicates that the shutdown process should no longer be graceful.