|
1234567891011121314151617 |
- try
- {
- Console.Title = "SafeCampus̨";
- }
- catch { }//עᱨҪcatch
- Serve.Run(GenericRunOptions.Default
- .ConfigureBuilder(hostBuilder =>
- {
- //hostBuilder.UseWindowsService();//֧עɷ
- hostBuilder.ConfigureServices((hostContext, services) =>
- {
- services.AddMqttClientManager();//mqtt
- });
- return hostBuilder;
- })
-
- );
|