// // Private methods // #region private void Retry(int interval) private void Retry(int interval) { if (retry > 3) { return; } ++retry; Thread.Sleep(interval * retry * 1000); Debug.WriteLine("AudioscrobblerPlugin.Retrying"); Submittor submittor = new Submittor( url, user, response, artist, song, album, musicBrainzId, length, userProxy, retry); Thread submitThread = new Thread(new ThreadStart(submittor.Execute)); submitThread.IsBackground = true; submitThread.Start(); }
public void Submit(string artist, string song, string album, string musicBrainzId, int length) { if (!connected) { Debug.WriteLine("AudioscrobblerPlugin.Submit : Not connected"); return; } Submittor submittor = new Submittor( submitUrl, user, md5Response, artist, song, album, musicBrainzId, length, userProxy); Thread submitThread = new Thread(new ThreadStart(submittor.Execute)); submitThread.IsBackground = true; submitThread.Start(); }
private void Retry(int interval) { if (retry > 3) { return; } ++retry; Thread.Sleep(interval * retry * 1000); Debug.WriteLine("AudioscrobblerPlugin.Retrying"); Submittor submittor = new Submittor( url, user, response, artist, song, album, musicBrainzId, length, userProxy, retry); Thread submitThread = new Thread(new ThreadStart(submittor.Execute)); submitThread.IsBackground = true; submitThread.Start(); }