How a Windows service returns information from a user command

I have a windows service running as part of my application.

If I want to communicate with him through a service descriptor, I can issue user commands (for example, "start worker"). Ultimately, this will be a call to the Win32 ControlService () function . What is the best way to return a data block from such a command?

In particular, I want to return a "default URL" (i.e. a string) to which my service will respond via other protocols such as http.

A solution that is easy to implement in a C # service (.net 2.0) would be preferable.

+3
source share
2

.net 2.0, . ControlService ( // ). , , . .

: .net 3.5, WCF .

( ), , - .net 2.0.

+2

WCF? .NET 3.0 , TCP/IP HTTP ..

0

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


All Articles