* 在 ControllerClientCompatOptions 中新增 AutoInitOptions 配置模型 * 创建 AutoInitRobotHostedService 实现启动时自动初始化链路 * 在 appsettings.json 的 ControllerClientCompat.AutoInit 节配置 RobotName 和 RobotIp * 启动时依次执行 SetUpRobot → SetActiveController → Connect → EnableRobot;配置缺失或连接失败不阻止服务启动 * 更新 README.md 和现场工作流文档
46 lines
880 B
JSON
46 lines
880 B
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"ControllerClientCompat": {
|
|
"ServerVersion": "flyshot-replacement-controller-client-compat/0.1.0",
|
|
"AutoInit": {
|
|
"RobotName": "LR_Mate_200iD",
|
|
"RobotIp": "127.0.0.1"
|
|
}
|
|
},
|
|
"Swagger": {
|
|
"Enabled": true,
|
|
"DocumentName": "v1",
|
|
"Title": "Flyshot Replacement HTTP API",
|
|
"Version": "v1",
|
|
"JsonRouteTemplate": "swagger/{documentName}/swagger.json",
|
|
"RoutePrefix": "swagger"
|
|
},
|
|
"Cors": {
|
|
"PolicyName": "LegacyHttpApi",
|
|
"AllowedOrigins": [
|
|
"*"
|
|
],
|
|
"AllowedMethods": [
|
|
"GET",
|
|
"POST",
|
|
"OPTIONS"
|
|
],
|
|
"AllowedHeaders": [
|
|
"*"
|
|
]
|
|
},
|
|
"Kestrel": {
|
|
"Endpoints": {
|
|
"Http": {
|
|
"Url": "http://0.0.0.0:5000"
|
|
}
|
|
}
|
|
},
|
|
"AllowedHosts": "*"
|
|
}
|