Table of Contents

Class ChannelFactory

Namespace
JD.AI.Gateway.Services
Assembly
JD.AI.Gateway.dll

Creates IChannel instances from ChannelConfig definitions. Supports all built-in channel types: discord, signal, slack, telegram, web, openclaw.

public sealed class ChannelFactory
Inheritance
ChannelFactory
Inherited Members

Constructors

ChannelFactory(IServiceProvider, ILogger<ChannelFactory>)

public ChannelFactory(IServiceProvider sp, ILogger<ChannelFactory> logger)

Parameters

sp IServiceProvider
logger ILogger<ChannelFactory>

Methods

Create(ChannelConfig)

Creates a channel instance from configuration. Returns null if the type is unknown.

public IChannel? Create(ChannelConfig config)

Parameters

config ChannelConfig

Returns

IChannel