Hi all,
i created one window service now i want to add its reference in my Client C sharp project but i am not able to add refrence plz help
Hi all,
i created one window service now i want to add its reference in my Client C sharp project but i am not able to add refrence plz help
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 30, 2012, 6:08 AM EDT
If I were you, I'd write the values to a file. The service can then check periodically whether the file has been updated (you could use the file's time-stamp for this) and read the data.
If for some reason you don't want to use a file then you could use a named pipe to communicate directly between the two processes.
VulpesRank #55 · 29.2K reputationPosted Mar 30, 2012, 5:26 AM EDT
Sumit KumawatRank #4,008 · 372 reputationPosted Mar 30, 2012, 5:36 AM EDT
hi,
thanx for your replay.
i created one window service in which i written Database connectivity. i hard coded the values and it is working fine now i want to insert values from my C sharp project UI means i want to give values from my C# project to window service. for this i want to take reference of window service like we take web reference but its not coming.is it possible to pass values from UI to window service??
i hope u got what i want to do.
Sam HobbsRank #107 · 20.5K reputationPosted Mar 30, 2012, 10:20 AM EDT
Sumit KumawatRank #4,008 · 372 reputationPosted Mar 30, 2012, 9:09 PM EDT
thanx for Replay.
can u provide me some link for wcf hosting in window service .
thanx in advance
VulpesRank #55 · 29.2K reputationPosted Mar 31, 2012, 11:26 AM EDT
http://www.codeproject.com/Articles/38160/WCF-Service-Library-with-Windows-Service-Hosting