I might be totally wrong here, but surely if you add a reference to your service it's not a service per se.
If you have the service in project A, and you want to attach a reference to said Service in Project B, although the class you are attaching a reference to has service functionality it will not be a service unless it is the specific application instance that is running under the Service Control Manager. It sounds like for what you are trying to do you require something such as remoting, to connect to the service from another library or application, and retrive information from it. Duncan ----- Original Message ----- From: "Jeff Hughes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 4:12 PM Subject: [ADVANCED-DOTNET] Adding functions to Windows service > I have a working service and I want to have the ability > to call functions I create in the service. > > If I create a function ... > > public string GetConnection(string key) > { > // assume I already have a var defined as a hashTable (myHash) > // and it is populated already from the on_start call of the service > > return myHash["key"]; > > } > > When I make a referance to my service I can see the Start(), Stop() and all > of the other functions of the service but I cannot see the function > GetConnection(string key) > > any Clues? > > Thank you, > > Jeff Hughes > > You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.