viper
viper
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
the mention doesn't reference any of that
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
plot twist: this could even be done un App.cs or turned into a Host builder and use an IHostedService
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
I'll look for the documentation myself meanwhile
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
I don't know how to do any of that, so I would be grateful if you point out some documentation about those
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
so yeah
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
the 3rd-party rust libs also use a sync RPC connection, and not Futures
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
yeah
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
it's old as fuck though
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
though I agree it's weird, and I have other problems with it
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
the C# is the reference implementation of KRPC, so I thought about using C# instead of going with the third-party ones
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
I just wanted that closing the window would terminate the task and cleanup any resources cleanly
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
I don't know what you are saying about connection cut, I don't care about it
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
though I don't know if I am doing something wrong still
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
this thing seems to work (?), and when I close the window it terminates
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
also, connection was IDisposable and rider didn't tell me about it, so I didn't have using (I believe it was causing the connection to linger and not exiting the app)
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
ok, so I have moved the project WPF -> Avalonia, and changed to async Task: https://github.com/viperML/KspAutopilot/blob/d1e667c86cfdc43c77d40e49b0663f173018354a/MainWindow.axaml.cs
129 replies
CC#
Created by viper on 11/25/2023 in #help
C# noob, trying to do a GUI app with a background service
catch what?
129 replies