/// <summary> /// Start. /// </summary> /// <param name="args"></param> protected override void OnStart(string[] args) { try { if (_manager == null) { // Start the server. _manager = new Nequeo.Net.Download.Manager(Nequeo.Net.Download.Properties.Settings.Default.DownloadBasePath); _manager.Start(); } } catch { } }
/// <summary> /// Stop. /// </summary> protected override void OnStop() { try { if (_manager != null) { // Stop the server. _manager.Stop(); _manager.Dispose(); } } catch { } _manager = null; }