refactor: Add IDataStreamFactory(s) for spatial arb streams
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user