public void OnError(IApiError error)
 {
     _logger.Error(this, $"Failed: '{error.Message}' ({error.GetType().Name})");
     Environment.Exit(-1);
 }
Exemplo n.º 2
0
        void OnApiError(IApiError obj)
        {
            var message = !string.IsNullOrEmpty(obj.Message) ? obj.Message : obj.GetType().Name;

            _notice.ScheduleNotice(new NoticeModel(message, _ => _scene.GoToStart()));
        }