Пример #1
0
        public void OnError(Exception error)
        {
            _log.Error("Your TweetObserver has crashed due to an uncaught error. Details:");
            _log.Error($"Message:\r\n{error.Message}\r\nStack trace:\r\n{error.StackTrace}");

            _log.Info("Trying to resubscribe...");
            ReSubscribe?.Invoke();
        }
Пример #2
0
 public void OnCompleted()
 {
     _log.Info("Tweet Observer has stopped. Attempting to resubscribe...");
     ReSubscribe?.Invoke();
 }