K
K Viltersten
I see in the examples at MSDN that when a
service is created, Main method is still
there, as the code below shows. Why is it
there?! I'd expect OnStart to be the only
required entry point for a service.
public static void Main() {
System.ServiceProcess.
ServiceBase.Run(new UserService1());}
service is created, Main method is still
there, as the code below shows. Why is it
there?! I'd expect OnStart to be the only
required entry point for a service.
public static void Main() {
System.ServiceProcess.
ServiceBase.Run(new UserService1());}