Share Information between Service and Service Manger

G

Guest

I have a application that run as Windows Service. I also created another
Windows Form Application that manage the Service like MS SQL Server Service
Manager did. Service Manager need to know some variable value in Service,
include some massive data.

I am using the TCP Socket, is there a better way? Thanks.
 
N

Nicholas Paldino [.NET/C# MVP]

MikeZ,

While you can use a TCP socket, you have to code a number of things from
scratch (like authentication, authorization, message encoding, etc, etc).
It's almost always going to be easier to use some pre-existing framework for
this.

To that end, I recommend Remoting, or Windows Communications Foundation,
with WCF being my first choice.
 
G

Guest

Nicholas,

Does com WCF come with framework 3.0? I am using VS.NET 2005. Could you
explain more on Remoting? Thanks.

Nicholas Paldino said:
MikeZ,

While you can use a TCP socket, you have to code a number of things from
scratch (like authentication, authorization, message encoding, etc, etc).
It's almost always going to be easier to use some pre-existing framework for
this.

To that end, I recommend Remoting, or Windows Communications Foundation,
with WCF being my first choice.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

MikeZ said:
I have a application that run as Windows Service. I also created another
Windows Form Application that manage the Service like MS SQL Server
Service
Manager did. Service Manager need to know some variable value in Service,
include some massive data.

I am using the TCP Socket, is there a better way? Thanks.
 
N

Nicholas Paldino [.NET/C# MVP]

MikeZ,

WCF is part of the .NET 3.0 framework. If you are limited to using .NET
2.0, then you won't have access to it.

With remoting, you probably want to look at the Remoting Overview in the
documentation:

http://msdn2.microsoft.com/en-us/library/kwdt6w2k.aspx


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


MikeZ said:
Nicholas,

Does com WCF come with framework 3.0? I am using VS.NET 2005. Could you
explain more on Remoting? Thanks.

Nicholas Paldino said:
MikeZ,

While you can use a TCP socket, you have to code a number of things
from
scratch (like authentication, authorization, message encoding, etc, etc).
It's almost always going to be easier to use some pre-existing framework
for
this.

To that end, I recommend Remoting, or Windows Communications
Foundation,
with WCF being my first choice.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

MikeZ said:
I have a application that run as Windows Service. I also created another
Windows Form Application that manage the Service like MS SQL Server
Service
Manager did. Service Manager need to know some variable value in
Service,
include some massive data.

I am using the TCP Socket, is there a better way? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top