Senator Guerra Souty original series calendar,replica hublot blue steel peach pointer collocation of rolex replica Rome digital scale, track type minute replica watches scale shows that the classical model is swiss replica watches incomparable, wearing elegant dress highlights.


YOU ARE HERE: HOME Questions Can we pass values to windows service If yes how

Passing values to Windows Service

View(s): 22174

Can we pass values to windows service? If yes, how?

Answer 1)

Yes, we can pass values to Windows Services

1) If you want to pass values at service startup, yo can send the values as command-line parameters. And (string[] args) of OnStart method will catch these parameters.

protected override void OnStart(string[] args)

2) If you want to pass values while service is running, you required to implement
 IPC (Interprocess communication) in Windows Service.

You can implement IPC by using any of following .NET technologies like NamedPipes, MSMQ, Remoting, TCP/IP Client/Service Programming or WCF Self Hosting Service.

  Asked in:  ValueLabs   Expertise Level:  Experienced
  Last updated on Wednesday, 20 November 2013
4/5 stars (15 vote(s))

Register Login Ask Us Write to Us Help