Local data access from JavaScript hosted in Winforms desktop application - winforms

HTML/JS applications typically use HTTP APIs for data access.
Winform desktop applications typically use direct database access.
If an HTML/JS application is loaded inside a desktop application (for example, by using the Winforms Browser Control), how could the HTML/JS application access local data without using anything outside of the desktop application itself?

Related

How can I add database for desktop application using flutter?

I am a flutter developer and now I want to develop an application for desktop. For that, I need to store data. I was using firebase for Android application and now I am shifting to desktop application but firebase doesn't support desktop application.
So, I need a free available backend database service. Is there available any except firebase.
If firebase supports desktop application then how can I add it to my project.

Service to update WPF application placed on server

I am developing a WPF application, which will be accessed from shared folder on server (Windows Server). My goal is to implement some mechanism of updating the app. The updater should be run on server probably as some kind of service. Which mechanism/technique would you recommended to use?
Based on your comment, I would look into using ClickOnce.
ClickOnce enables Web-style application deployment for non-Web
applications. Applications are published to and deployed from Web or
file servers.
https://msdn.microsoft.com/en-us/library/t71a733d(v=vs.140).aspx
You can also use Squirrel.
Squirrel: It's like ClickOnce but Works™
https://github.com/Squirrel/Squirrel.Windows

messages between local Silverlight apps without using local messaging

I have one silverlight application hosted in HTTPS and another in HTTP. How can I send messages between them? Silverlight's local messaging system can not send messages between silverlight apps hosted in different URI scheme.
Silverlight's local messaging system typicaly uses for communication silverlight plugins on the same page. So, you provide more complex scenario. You access to first via https and to second via http, as I understant each application hosted in an own page and you want provide communication between this application. I think you should use services to synchronize their on server.

How to communicate between Windows Form app and Web Site?

We developped an C# .Net 2.0 Windows Form application for Windows XP embedded that controls the underlying hardware/device. Now, we need to add a c# .NET 2.0 Web Site (hosting by IIS inside the same device) that can send commands to the Windows Form application (example: Start measuring) and receive data.
What is the best way to do it?
We thought about Web Service, but how the Windows Form application can know when the Web Service will receive a command from the Web Site.
Thank you.
Note: Forbidden to install on the device a Framework .NET 3.x or 4
Given this restriction on .Net 2.0, .net remoting is the way to go in this situation.
http://en.wikipedia.org/wiki/.NET_Remoting
Winform app can expose objects via remoting. Web app can send request to these objects. request would have commands.

Silverlight and Windows Workflow Foundation

Can I make a Silverlight application communicate with a Windows Workflow Foundation (WF) application? If yes, how can I do that?
I tried to add a reference from my Silverlight application to a WF application and it doesn't work.
If your application was a service application, then yes.
Silverlight won't host a workflow, but it could call a workflow service if the workflow you need to run is hosted within a service rather than an application.
It should be a matter of adding the service reference within the Silverlight application.

Resources