框架搭建

dep_wangsr
CaesarBao 2 weeks ago
parent e508d04eee
commit 4747aa7413

@ -37,8 +37,8 @@ namespace SlnMesnac.TouchSocket
public static IApplicationBuilder UseTouchSocketExtensions(this IApplicationBuilder app) public static IApplicationBuilder UseTouchSocketExtensions(this IApplicationBuilder app)
{ {
var _server = app.ApplicationServices.GetService<TcpServer>(); // var _server = app.ApplicationServices.GetService<TcpServer>();
_server.Init(20108); // _server.Init(20108);
var _apiServer = app.ApplicationServices.GetService<WebApiServer>(); var _apiServer = app.ApplicationServices.GetService<WebApiServer>();
_apiServer.Init(); _apiServer.Init();

@ -40,9 +40,9 @@
<ColumnDefinition/> <ColumnDefinition/>
<ColumnDefinition/> <ColumnDefinition/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="白班" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,30,0"/> <!-- <TextBlock Grid.Column="0" Text="白班" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,30,0"/> -->
<TextBlock Grid.Column="1" Text="|" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,30,0"/> <!-- <TextBlock Grid.Column="1" Text="|" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,30,0"/> -->
<TextBlock Grid.Column="2" Text="SCADA" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,10,0"/> <!-- <TextBlock Grid.Column="2" Text="SCADA" FontSize="25" Foreground="White" FontWeight="Bold" Margin="0,0,10,0"/> -->
</Grid> </Grid>
</StackPanel> </StackPanel>
</Grid> </Grid>

@ -45,7 +45,7 @@ namespace SlnMesnac.WPF
services.AddPlcFactorySetup(); services.AddPlcFactorySetup();
//注册RFID工厂 //注册RFID工厂
services.AddRfidFactorySetup(); //services.AddRfidFactorySetup();
} }
/// <summary> /// <summary>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 132 KiB

@ -8,7 +8,7 @@
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"AppConfig": { "AppConfig": {
"logPath": "E:\\桌面\\SlnMesnac\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows", "logPath": "F:\\Mesnac\\2023部门项目\\机场AGV调度\\HightWay_AirPot_WCS\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows\\log",
"SqlConfig": [ "SqlConfig": [
{ {
"configId": "mes", "configId": "mes",

Loading…
Cancel
Save