public void AddLiveIdSource(string url) { if (Settings.Instance.SourceList.Where(source => source.Url == url).Count() == 0) { var source1 = new LiveIdSource(url); Settings.Instance.SourceList.Add(source1); } }
public Task StartLiveIdCollection(CancellationToken ct) { return(Task.Factory.StartNew(async() => { foreach (var c in Settings.Instance.SourceList) { c.Timer.Start(); await LiveIdSource.LiveIdSourceTimer_Elapsed(c); } }, ct)); }
public static async Task LiveIdSourceTimer_Elapsed(LiveIdSource source) { }