Share Information between Service and Service Manger

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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,

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.
 
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.
 
Back
Top