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>());
|
||||
}
|
||||
Reference in new issue
Block a user