Windows Service Interactions
I´m new to write windows services and I was searching around collecting necessery info and howtos. What I´m mis开发者_运维百科sing is the interaction between my webapp and the service. The servicecontroller helps me sending messages to the service and gives me the main status of the service.
Is there a way to get custom messages, set custom properties and get properties? If there are not, should I use a file for both the service and the web app where both can read and write on, like a settings file in xml or are there better methods?
Is there a way to get the messages in the corresponding eventlog, how do i access them?
You may want to look into Windows Communication Foundation. This would allow your service to "serve" information to your WebApp.
精彩评论