Class ChannelFactory
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
spIServiceProviderloggerILogger<ChannelFactory>
Methods
Create(ChannelConfig)
Creates a channel instance from configuration. Returns null if the type is unknown.
public IChannel? Create(ChannelConfig config)
Parameters
configChannelConfig