Replies: 3 comments
-
OK, and this was causing error in WebBuilder startup |
Beta Was this translation helpful? Give feedback.
-
referencing App.Current gives me instance of the current app.
|
Beta Was this translation helpful? Give feedback.
-
Ok, so look like it is not that hard to find things ...
|
Beta Was this translation helpful? Give feedback.
-
I am trying to add API support for exiting Avalonia APP.
So that APP would listen for REST API call's and update the GUI.
Below I have described the steps what I have done, but for some reason HTTP server is not listening to port 5000.
I tried running Visual Studio as admin to make sure that port can be created but no luck.
Help would be appreciated
Also how can I reference user controls activated in Avalonia app from API Controller?
I have done the following:
Referenced Microsoft.AspNetCore.Mvc nuget package
Referenced Microsoft.AspNetCore nuget package
Created a Startup.cs file in the root of the project, and copy the following code:
added to Main()
CreateWebHostBuilder(args).Build().RunAsync();
created definition for web builder
As I have app that runs in Linux frame buffer I have the following Program.cs:
Added Controllers folder with ValuesController.cs file in it containing:
Beta Was this translation helpful? Give feedback.
All reactions