0

I have an Winforms app that host an ASP.NET Core Web API.

The main idea of the project is that from the winforms textbox I pass a database connection string to the dbContext of the ASP.NET Core API, and I start the IWebHost with the Startup so on..

I need this ASP.NET Core to be a datagram listener to when I start the host any idea or approach can help me to achieve this ?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • If you want to create a datagrtam listener why you must host a asp.net core application inside the winform? In my opinion, you could directly write the code inside the winform. But if you want to know how to host it inside winform, I think this [answer](https://stackoverflow.com/questions/60033762/hosting-asp-net-core-api-in-a-windows-forms-application) will help you. – Brando Zhang Jan 03 '23 at 05:11

0 Answers0