Exemplo n.º 1
0
            protected override async Task RunAsync()
            {
                try {
                    await vc.PublishAsync(moduleName, path, files, message, Monitor);
                } catch (OperationCanceledException) {
                    return;
                } catch (VersionControlException e) {
                    LoggingService.LogError("Publish operation failed", e);
                    Monitor.ReportError(e.Message, null);
                    return;
                }

                Gtk.Application.Invoke((o, args) => {
                    VersionControlService.NotifyFileStatusChanged(new FileUpdateEventArgs(vc, path, true));
                });
                Monitor.ReportSuccess(GettextCatalog.GetString("Publish operation completed."));
            }