示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 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));
 }
示例#4
0
 public static async Task LiveIdSourceTimer_Elapsed(LiveIdSource source)
 {
 }
示例#5
0
        public static async Task LiveIdSourceTimer_Elapsed(LiveIdSource source)
        {

        }