diff --git a/src/DataStreamSuite/PubSubServer/Program.cs b/src/DataStreamSuite/PubSubServer/Program.cs index 185bf5192..59726464f 100644 --- a/src/DataStreamSuite/PubSubServer/Program.cs +++ b/src/DataStreamSuite/PubSubServer/Program.cs @@ -32,6 +32,11 @@ static void ConfigureApp(HostBuilderContext context, IConfigurationBuilder confi } static void ConfigureServices(HostBuilderContext context, IServiceCollection services) { + var echoServerCfg = context.Configuration.GetSection("SimpleEchoServer"); + if (echoServerCfg.Get() is not null) { + services.AddPubSubEchoServer(echoServerCfg); + return; + } /// Bind configuration json fields to strong types. This allows us to add services with /// constructors that accept these types as arguments. services.AddSpark(context.Configuration.GetSection("Spark"))