public override void Update() { try { var executionArguments = string.Format(PullArgument, RepositoryPath); var output = _command.Execute(Settings.GitPath, executionArguments, true, true, true); var message = new GenericTinyMessage <string>(this, string.Format("Git updated: {0}", output)); _eventBus.Publish(message); } catch (Exception exception) { var message = new GenericTinyMessage <Exception>(this, exception); _eventBus.Publish(message); } }
private void ShowAlert(GenericTinyMessage <Exception> msg) { ShowAlert(msg.Content); }
private void SendMessage(string text) { var message = new GenericTinyMessage<string>(this, text); Hub.Publish(message); }