pubsub server checkpt
This commit is contained in:
1 parent
3541feef87
commit
844677dae0
1 file changed
+5
@@ -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<EchoServerConfig>() 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"))
|
||||
|
||||
Reference in new issue
Block a user