Namely, in DataStreamPublisher and PubSubServer. This is part of a broader paradigm shift towards dotnet factory pattern. https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection-guidelines * Rename Configurations/<name>.json -> appsettings.<name>.json * Move reusable startup code into new Bts.Extensions.Hosting proj
84 lines
1.8 KiB
JSON
84 lines
1.8 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"Spark": {},
|
|
"MasterWorker": {
|
|
"Interval": "00:00:00.1"
|
|
},
|
|
"ViewStreamDatabase": {
|
|
"Interval": "00:00:00.1"
|
|
},
|
|
"PubSub": {
|
|
"HeartbeatInterval": 15000,
|
|
"MissingHeartbeatsBeforeGc": 50,
|
|
"DisposedConnectionCheckPeriod": 1000,
|
|
"ServerPort": 22019,
|
|
"Routing": {
|
|
"PublisherRoutes": [
|
|
{
|
|
"Name": "default",
|
|
"ServerAddress": "bts-cloud://pubsub:22019",
|
|
"TagRegExp": ".*"
|
|
}
|
|
],
|
|
"SubscriberRoutes": [
|
|
{
|
|
"Name": "default",
|
|
"ServerAddress": "bts-cloud://pubsub:22019",
|
|
"TagRegExp": ".*"
|
|
}
|
|
]
|
|
},
|
|
"TagTypeToAssemblyMap": {
|
|
"Entries": [
|
|
{
|
|
"HandlerClass": "BCG.PubSubServerTagHandler",
|
|
"Assembly": "DataStreamCore.dll"
|
|
}
|
|
]
|
|
},
|
|
"TagHandlerFactory": {
|
|
"Handlers": [
|
|
{
|
|
"TagType": "DataStream",
|
|
"Assembly": "DataStreamCore",
|
|
"Class": "bts.PubsubServerStreamTagHandler"
|
|
},
|
|
{
|
|
"TagType": "System_Sub",
|
|
"Assembly": "PubSub",
|
|
"Class": "BCG.SystemSubscriptionMapPublisher"
|
|
},
|
|
{
|
|
"TagType": "System_Stats",
|
|
"Assembly": "PubSub",
|
|
"Class": "BCG.SystemStatsPublisher"
|
|
},
|
|
{
|
|
"TagType": ".*",
|
|
"Assembly": "DataStreamCore",
|
|
"Class": "bts.PubsubServerGenericDataHandler"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"DataStreamPublisher": {
|
|
"PublisherNodes": [
|
|
{
|
|
"Name": "test_data",
|
|
"Streams": [
|
|
{
|
|
"Name": "test_literal",
|
|
"Expression": "literal(\"x\", \"420.0\")",
|
|
"IsOnWebsocket": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|