/// <summary> /// Start the service, and stop the service if there were any errors found. /// </summary> /// <param name="Arguments">An array of arguments passed from the command line (unused).</param> protected override void OnStart(string[] Arguments) { Web = new WebHandler(); if (!Web.bStartedSuccessfully) { OnStop(); } }
/// <summary> /// Start the service, and stop the service if there were any errors found. /// </summary> /// <param name="Arguments">An array of arguments passed from the command line (unused).</param> protected override void OnStart( string[] Arguments ) { Web = new WebHandler(); if( !Web.bStartedSuccessfully ) { OnStop(); } }