refactor: Add IDataStreamFactory(s) for spatial arb streams

This commit is contained in:
John Colvin committed 2025-11-15 12:38:48 -05:00
1 parent 256f7025a2
commit 6e1e5d4bbf
6 files changed
+132 -8

No files matched your search

@@ -13,10 +13,12 @@ public static class DataStreamCoreServices {
services.AddSingleton<IPubTableBroker, PubTableBroker>();
public static IServiceCollection AddViewStreamDatabase(this IServiceCollection services) =>
services.AddSingleton<IWorker, ViewStreamDatabase>(sp => {
ViewStreamDatabase.SetGlobalInstance(new ViewStreamDatabase());
return ViewStreamDatabase.instance;
});
services
.AddSingleton(sp => {
ViewStreamDatabase.SetGlobalInstance(new ViewStreamDatabase());
return ViewStreamDatabase.instance;
})
.AddSingleton<IWorker, ViewStreamDatabase>(sp => sp.GetRequiredService<ViewStreamDatabase>());
public static IServiceCollection AddPrimitiveStreams(this IServiceCollection services, IConfiguration configurationSection) =>
services.Configure<PrimitiveManagerConfig>(configurationSection)