private void TryToAuthorizeTrello() { if (string.IsNullOrWhiteSpace(Settings.Default.Token)) { return; } Trello.Authorize(Settings.Default.Token); Trello.Async.Members.Me().ContinueWith(t => { if (t.Exception == null) { MessageBus.Publish(new TrelloWasAuthorizedEvent(t.Result)); } else { Trello.Deauthorize(); Settings.Default.Token = ""; Settings.Default.Save(); } }); }