refactor: Rename AddRemoteQueryManager -> AddRemoteQueryStreams

This commit is contained in:
John Colvin committed 2025-08-24 13:46:57 -04:00
1 parent b1211ed590
commit 05a5e9dcf8
4 files changed
+9 -5

No files matched your search

@@ -2,10 +2,14 @@ namespace Bts.DataStream.Services;
using BCG;
using Bts.DataStream.StreamFactories;
using Bts.DataStreamCore;
using Microsoft.Extensions.DependencyInjection;
public static class DataStreamServices {
public static IServiceCollection AddRemoteQueryManager(this IServiceCollection services) =>
services.AddSingleton<RemoteQueryManager>()
public static IServiceCollection AddRemoteQueryStreams(this IServiceCollection services) =>
services.AddSingleton<IDataStreamFactory, RemoteQueryStreamFactory>()
.AddSingleton<RemoteQueryManager>()
.AddHostedService(sp => sp.GetRequiredService<RemoteQueryManager>());
}
@@ -18,7 +18,7 @@ public static class DataStreamPublisherServices {
.AddViewStreamDatabase()
.AddPubSubClient(configurationSection.GetSection("PubSub"))
.AddPubTableBroker()
.AddRemoteQueryManager()
.AddRemoteQueryStreams()
.AddPrimitiveStreams(configurationSection.GetSection("PrimitiveStream"))
.Configure<DataStreamPublisherConfig>(configurationSection.GetSection("DataStreamPublisher"))
.AddHostedService<DataStreamPublisherService>();
@@ -60,7 +60,7 @@ static class Program {
.AddViewStreamDatabase()
.AddPubSubClient(context.Configuration.GetSection("PubSub"))
.AddPubTableBroker()
.AddRemoteQueryManager()
.AddRemoteQueryStreams()
.AddPrimitiveStreams(context.Configuration.GetSection("PrimitiveStream"))
.AddMarketDataStreams();
}
+1 -1
View File
@@ -33,7 +33,7 @@ public static class SparkServices {
if (pubSubCfg is not null && pubSubCfg.GetValue("Enabled", true)) {
services.AddPubSubClient(pubSubCfg)
.AddPubTableBroker()
.AddRemoteQueryManager()
.AddRemoteQueryStreams()
.AddTableStreams();
}
services.AddGarbageCollector(configurationSection.GetSection("GarbageCollector"))