refactor: Rename AddRemoteQueryManager -> AddRemoteQueryStreams
This commit is contained in:
1 parent
a358fe6229
commit
bb29c32059
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();
|
||||
}
|
||||
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user