#Electron with .net core web API

6 messages · Page 1 of 1 (latest)

strange axle
#

Hi,
I'm using electron with a c# .net backend but I am finding (I think) that sometimes the electron app starts up before the web api. Does anyone know a way I can wait for the web api to have started before starting up electron?

Thanks!

smoky kayak
#

for dev or for prod?

strange axle
#

Both. It's a desktop app with c# back end (run locally)

smoky kayak
#

then check for availability before using api server

strange axle
#

the angular app connects to the api server on start up. how would i go about checking for availability? Do you mean from the angular app side of things, or the main.js file

smoky kayak
#

from main.js