G
Gregory Gadow
I am writing a service using VB.NET 2.0. One of the first steps is to
retrieve some settings from the registry; I need the activation of the
service to halt if these settings are not found.
Looking at the generated code, it looks like I should do this
initialization in the Sub Main of the service, with a conditional call
to System.ServiceProcess.ServiceBase.Run. I assume that means I should
move all of my other initialization code like setting up the EventLog
reference, to the same location? I'm still kind of new to .NET
programming, so I'm wondering if there are any caveats to mucking with
generated code that Microsoft keeps hidden.
retrieve some settings from the registry; I need the activation of the
service to halt if these settings are not found.
Looking at the generated code, it looks like I should do this
initialization in the Sub Main of the service, with a conditional call
to System.ServiceProcess.ServiceBase.Run. I assume that means I should
move all of my other initialization code like setting up the EventLog
reference, to the same location? I'm still kind of new to .NET
programming, so I'm wondering if there are any caveats to mucking with
generated code that Microsoft keeps hidden.