refactor: Load IDataStreamFactory(s) with dependency injection

So we can create ViewStreams that depend on other services, config, etc.
Previously, the PrimitiveManager relied purely on static construction of
types through reflection.
This commit is contained in:
John Colvin committed 2025-11-19 13:53:18 -05:00
1 parent 7566b2560f
commit ea0a1fbcd3
59 files changed
+2124 -161

No files matched your search

@@ -0,0 +1,11 @@
namespace Bts.DataStreamCore;
using Microsoft.Extensions.Logging;
public static partial class StreamFactoryLogs {
[LoggerMessage(EventId = 1, Level = LogLevel.Warning, Message = "Unable to create '{StreamType}' stream. Missing required parameter '{Parameter}'.")]
public static partial void LogMissingParam(this ILogger logger, string streamType, string parameter);
[LoggerMessage(EventId = 2, Level = LogLevel.Warning, Message = "Unable to create '{StreamType}' stream. {error}.")]
public static partial void LogInvalidParams(this ILogger logger, string streamType, string error);
}