Obtain an instance of a windows service in .NET
Posted on 2004-11-05
I wrote a windows service using c#. It communicates with my application using .net remoting. I can obtain an instance of my service using .net remoting, however using the methods is too much slower than doing the method within the application.
Is there a way to obtain an instance of the service so I can execute its methods directly? I know I can get a ServiceController object based on the service name. Is there a way for my application to get the instance itself, so that I can execute
Or is remoting the only way?