Click here to Skip to main content
16,005,682 members
Home / Discussions / C#
   

C#

 
GeneralRe: MultiLine datagrid header Pin
denizmercan1-Jun-04 23:28
denizmercan1-Jun-04 23:28 
GeneralRe: MultiLine datagrid header Pin
Torsten Mauz2-Jun-04 0:01
Torsten Mauz2-Jun-04 0:01 
GeneralRe: MultiLine datagrid header Pin
denizmercan2-Jun-04 0:31
denizmercan2-Jun-04 0:31 
GeneralRe: MultiLine datagrid header Pin
Torsten Mauz2-Jun-04 20:27
Torsten Mauz2-Jun-04 20:27 
GeneralWMI Classes Pin
RockmanHero20031-Jun-04 22:31
RockmanHero20031-Jun-04 22:31 
GeneralRe: WMI Classes Pin
Heath Stewart2-Jun-04 4:18
protectorHeath Stewart2-Jun-04 4:18 
GeneralService - front-end communication Pin
LorenzoDV1-Jun-04 22:09
LorenzoDV1-Jun-04 22:09 
GeneralRe: Service - front-end communication Pin
Heath Stewart2-Jun-04 3:36
protectorHeath Stewart2-Jun-04 3:36 
You can send simple commands (and I do mean simple) to the service via the ServiceController and it's ExecuteCommand method.

If this isn't suitable (really only good for telling the service to do pre-defined tasks), then the best way is using .NET Remoting. It may be a little difficult to understand at first, but once you understand it it's excellent. If you're familiar with XML Web Services, you've already got a pretty good start. .NET Remoting - unlike XML Web Services - doesn't really care about the transport or serialization channel (though there are some restriction depending on how the remoting object is hosted). The .NET FCL provides both a SoapFormatter and a BinaryFormatter, as well as a TcpChannel and HttpChannel. For the best performance, I recommend configuring your remoting object and the proxy (runs on the client) so that it uses the BinaryFormatter (faster serialization and much less overhead) and the TcpChannel for two-way communication and faster transport than HTTP.

There are lots of good articles here on CodeProject about .NET Remoting. I recommend anything by Roman Kiss (although some knowledge of .NET Remoting is required since his articles are often for more advanced developers with .NET Remoting).

You can also read about it in the .NET Framework SDK: .NET Remoting Overview[^].

I would also recommend 1 or both of the following books:The biggest advantage over using TCP sockets is that you don't have to define your own protocol; it's already done for you. You also don't have to worry about the serialization of complex objects. The one advantage of using a TCP socket with a solid protocol design is that you could communicate with it using just about any language, framework, or platform.

This is the typical and recommended solution for communication between .NET projects.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Service - front-end communication Pin
LorenzoDV2-Jun-04 10:39
LorenzoDV2-Jun-04 10:39 
GeneralRe: Service - front-end communication Pin
Heath Stewart2-Jun-04 10:46
protectorHeath Stewart2-Jun-04 10:46 
GeneralDataGrid - 10,000 or more record need to be add. Pin
temp55561-Jun-04 19:03
temp55561-Jun-04 19:03 
GeneralRe: DataGrid - 10,000 or more record need to be add. Pin
sreejith ss nair1-Jun-04 19:45
sreejith ss nair1-Jun-04 19:45 
GeneralRe: DataGrid - 10,000 or more record need to be add. Pin
Jay Shankar1-Jun-04 20:27
Jay Shankar1-Jun-04 20:27 
GeneralRe: DataGrid - 10,000 or more record need to be add. Pin
temp55562-Jun-04 20:12
temp55562-Jun-04 20:12 
GeneralExtending (improving) microsoft's HTML editor control? Discuss! Pin
Nathan Ridley1-Jun-04 17:35
Nathan Ridley1-Jun-04 17:35 
GeneralRe: Extending (improving) microsoft's HTML editor control? Discuss! Pin
Heath Stewart2-Jun-04 3:23
protectorHeath Stewart2-Jun-04 3:23 
GeneralRe: Extending (improving) microsoft's HTML editor control? Discuss! Pin
Nathan Ridley2-Jun-04 11:40
Nathan Ridley2-Jun-04 11:40 
QuestionFinally a solution to visual themes? Pin
Carl Mercier1-Jun-04 17:23
Carl Mercier1-Jun-04 17:23 
GeneralSave Image Pin
The_Soul_Of_Rock1-Jun-04 16:37
The_Soul_Of_Rock1-Jun-04 16:37 
GeneralRe: Save Image Pin
Edbert P1-Jun-04 17:10
Edbert P1-Jun-04 17:10 
GeneralRe: Save Image Pin
The_Soul_Of_Rock1-Jun-04 18:12
The_Soul_Of_Rock1-Jun-04 18:12 
GeneralRe: Save Image Pin
Roman Rodov1-Jun-04 19:35
Roman Rodov1-Jun-04 19:35 
GeneralRe: Save Image Pin
Edbert P1-Jun-04 20:09
Edbert P1-Jun-04 20:09 
GeneralDataadapter Updates Pin
MrJJKoolJ1-Jun-04 15:58
MrJJKoolJ1-Jun-04 15:58 
GeneralRe: Dataadapter Updates Pin
Heath Stewart2-Jun-04 3:15
protectorHeath Stewart2-Jun-04 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.