protected override void OnStart(string[] args) { Console.WriteLine("\nOnStart\n"); ServiceStartInstance = new ServiceStarter(); Task.Run(() => ServiceStartInstance.OnStartServiceAsync()); }
protected override void OnStart(string[] args) { ServiceStartInstance = new ServiceStarter(); Task.Run(() => ServiceStartInstance.OnStartService()); }