I have this windows service class here written in C#. It has a member function called Stop but apparently its base class ServiceBase also has a Stop function.
ServiceBase.Stop()
calls OnStop
which is overriden in the service again which calls this.Stop()
in its own object again.
Now VS gives the warning:
Server.Stop()
hides inherited member System.ServiceProcess.ServiceBase.Stop()
. Use the new keyword if hiding was intended
Can I just use new without changing the behaviour of the service?