From 844677dae08a12cc1c09e09fd13dc7e6576b0bca Mon Sep 17 00:00:00 2001 From: John Colvin Date: Sun, 14 Jul 2024 13:16:39 -0400 Subject: [PATCH] pubsub server checkpt --- src/DataStreamSuite/PubSubServer/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) 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"))