Communication with Silverlight Server

I have a WPF application that I want to connect to Linux / Mac. The most logical way is to split the application into two parts: client and server, as well as use Silverlight for the client user interface and launch the server part (in the form of an invisible console application) in Mono.

But what is the best way to report these two parts? Silverlight 4 supports COM interoperability, but I cannot use it because it does not work in Moonlight. So I was thinking about a socket connection with localhost and used JSON or something like that. Or is there a better way that does not require me to write dozens of wrappers for the entire function contained in server-dll? Because there will be a connection between Mono <> Moonlight, maybe I can use something similar, like COM interoperability, which is cross-platform?

+3
source share
3 answers
+1

.

-, Silverlight http://localhost REST SOAP.

+1

- ( ). , "" ?

? - ? SilverLight?

SilverLight provides a runtime host for .Net, in this sense it can contain your entire application, which can still be overlaid as a “normal” web solution, so you can have separate assemblies for business logic, etc.

0
source

Source: https://habr.com/ru/post/1770000/


All Articles