/// <summary> /// Constructs a listen config by binding its corresponding section /// in the BAPS server configuration. /// </summary> /// <param name="listenSection"> /// The section of the main BAPS configuration that contains the listen config. /// </param> /// <returns>The created config node.</returns> private ListenConfig MakeListen(IConfigurationSection listenSection) { var logger = CreateLogger <ListenConfig>(); var listenConfig = new ListenConfig(logger); listenSection.Bind(listenConfig); return(listenConfig); }
public ServerConfig(ListenConfig listen, ChannelSetConfig channelSet, ILogger <ServerConfig>?logger) : base(logger) { Listen = listen; ChannelSet = channelSet; }