how to access methods of Window Service
-
i am trying to access methods of windows Service from another project or Application is it possible? except Start, Stop method of Windows service. suppose in my window service i have method like this for Creating a folder in C: drive. // this service class one Method. public void mthCreateFolder() { //logic for creating folder } When i use System.ServiceProcess class using The name of the Service i can access Start, Stop, Restart Method of That Service. But now i want to Access method mthCreateFolder of that service. Plz help me? Sanjit.rajbanshi@wlinktech.com
-
i am trying to access methods of windows Service from another project or Application is it possible? except Start, Stop method of Windows service. suppose in my window service i have method like this for Creating a folder in C: drive. // this service class one Method. public void mthCreateFolder() { //logic for creating folder } When i use System.ServiceProcess class using The name of the Service i can access Start, Stop, Restart Method of That Service. But now i want to Access method mthCreateFolder of that service. Plz help me? Sanjit.rajbanshi@wlinktech.com
If you programmed that service you can use Remoting to communicate between your application and that service, and then call that method. If not!! Then I don't think you'd be able to do it.
Regards:rose: