Using windows services [written in C#] using C# -


I wrote a Windows service in C #, which, after reading a file at regular intervals, some functionality (a public method ). Is it possible to use this functionality from other C # applications? If possible, please give a solution based on .NET 2.0 and .NET 3.0

thanks

You can

The easiest option is to write that functionality in a separate assembly (DLL) that you do with both service and other NAT applications. Are there.

> Refer service assembly (even if it is an XE, at least in VS 2008) - but it seems that a small overkill.

If you want to execute the method in the context of the ongoing service, then you will need some IPC (probably WCF or sockets).


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -