Giter Site home page Giter Site logo

Comments (5)

cjmurph avatar cjmurph commented on June 15, 2024

We should definietly aim to move. We'll need to rethink the whole WCF approach though, I'm not sure it has made it from framework to core. I've been having a few issues wiht WPF for other apps with .net 6. seemingly random loss of binding, gui just not updating at all etc. This is a very simple application so we may not face too much trouble.

from pmsservice.

d8ahazard avatar d8ahazard commented on June 15, 2024

We should definietly aim to move. We'll need to rethink the whole WCF approach though, I'm not sure it has made it from framework to core. I've been having a few issues wiht WPF for other apps with .net 6. seemingly random loss of binding, gui just not updating at all etc. This is a very simple application so we may not face too much trouble.

So, I started cracking away at this one, taking in mind one of your previous comments about incorporating a Web UI.

Thus far, I was able to port the PlexService application portion to dotnet 6, and ditch the WCF stuff entirely.

In lieu of WCF, I've added MCV in conjunction with SignalR for websocket support. This way, we can more or less keep the tray application exactly the same, only removing the calls that used WCF and have them use a WebSocket client instead.

I've also got the tray app ported to dotnet 6, but I'm presently getting some issues compiling/running it. But, that's more than likely something dumb I've done. I plan on tinkering with that some more today, hopefully, I can get the tray app up and running and doing basic communication with the service...and then it's just implementing all the various methods on the server-side as I've named them in the client.

from pmsservice.

d8ahazard avatar d8ahazard commented on June 15, 2024

@cjmurph - One more update...

Got most of the code ported to net6. Wound up going with WPF for the UI in the Tray app, and MCV + SignalR websocket for the server-side.

The client and server both run now and can communicate - I've probably still got some missing methods, but start/stop of Plex works, as does loading/saving settings, and most of the other UI components. Server side should also be running fine.

I could ramble on a bit about it, but I've got a branch with the working changes here:

https://github.com/d8ahazard/PmsService/tree/Net6

Still needs some work yet, but it's a promising proof-of-concept.

from pmsservice.

cjmurph avatar cjmurph commented on June 15, 2024

Good stuff, I'll have a look.
I've used fleck for web sockets in c# before. It's very easy to implement.

from pmsservice.

d8ahazard avatar d8ahazard commented on June 15, 2024

Good stuff, I'll have a look. I've used fleck for web sockets in c# before. It's very easy to implement.

Just pushed more updates to this branch today...fixed most of the issues, probably created a few new ones. Tested most of the tray functions and verified they're working, had to fix all of the "open this external app" calls to pass the command to explorer, probably because netCore doesn't run the same as netFramework apps...or something.

Still a lot of warnings on compile, I need to test remote log viewing, and I need to add socket pushes for when an aux app's state changes remotely so the UI is updated accordingly.

from pmsservice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.