Baconography.NeutralServices.OfflineDelayableRedditService.EditComment C# (CSharp) Method

EditComment() public method

public EditComment ( string thingId, string text ) : System.Threading.Tasks.Task
thingId string
text string
return System.Threading.Tasks.Task
        public override async Task EditComment(string thingId, string text)
        {
            try
            {
                if (string.IsNullOrWhiteSpace(thingId) || text == null)
                    return;
                if (_settingsService.IsOnline() && (await _userService.GetUser()).Username != null)
                    await base.EditComment(thingId, text);
                else
                    await _offlineService.EnqueueAction("EditComment", new Dictionary<string, string> { { "thingId", thingId }, { "text", text } });
            }
            catch (TaskCanceledException)
            {
                throw;
            }
            catch (Exception ex)
            {
                _notificationService.CreateErrorNotification(ex);
                _offlineService.EnqueueAction("EditComment", new Dictionary<string, string> { { "thingId", thingId }, { "text", text } }).Start();
            }


        }