Topshelf timeout issue
We are using Topshelf to host a service. Before starting the service, we are making database call to load lot of data. Because of this, while starting the service, we are getting following error: Start Service failed with return code '[7] ServiceRequestTimeout We are using following code to start the service: HostFactory.Run(x => { x.Service<AppService>(s => { s.ConstructUsing(name => new AppService(s_resolver, baseAddress, resolver)); s.WhenStarted(svc => svc.Start()); s.WhenStopped(svc => svc.Stop()); s.WhenShutdown(svc => svc.Shutdown()); }); x.EnableShutdown(); x.RunAsLocalService(); x