I know how to "create" a service application
I know what to write in the main () function.
I know how to add the event (or other components) to the service.
I know what happens when the service starts, closes or starts
I want to know that it is ...
< P> I want my Windows service to do some functions (like indexing files).Where do I add code service function to do this?
I'm assuming that you want something that can go from time to time, not constantly you You might want to consider setting up a timer that executes a method on the end. The timer can automatically reset itself or reset your callback timer for your next termination when it will be completed. You want to start the timer in your onstart method
You may also consider reducing the priority of your service so that it does not already try the foreground function on the system.
Comments
Post a Comment