Exemplo n.º 1
0
 public void Initialize()
 {
     _rssClient            = new RSSClient(_databaseManager);
     _rssClient.RSSUpdate += OnRSSUpdateAsync;
     _rssClient.RSSError  += OnRSSError;
     _rssClient.Start();
 }
Exemplo n.º 2
0
 private void OnRSSError(object sender, RSSErrorEventArgs e)
 {
     if (!e.StillAlive)
     {
         _rssClient            = new RSSClient(_databaseManager);
         _rssClient.RSSUpdate += OnRSSUpdateAsync;
         _rssClient.RSSError  += OnRSSError;
         _rssClient.Start();
     }
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     _rssClient?.Dispose();
     _rssClient = null;
 }