public async Task PublishAsync(IRSession session, IApplicationShell appShell, IFileSystem fs, string inputFilePath, string outputFilePath, PublishFormat publishFormat, Encoding encoding) { try { await RMarkdownRenderAsync(session, fs, inputFilePath, outputFilePath, GetDocumentTypeString(publishFormat), encoding.CodePage, appShell); } catch (IOException ex) { await appShell.ShowErrorMessageAsync(ex.Message); } catch (RException ex) { await appShell.ShowErrorMessageAsync(ex.Message); } catch (OperationCanceledException) { } }
public async Task PublishAsync(IRSession session, IApplicationShell appShell, IFileSystem fs, string inputFilePath, string outputFilePath, PublishFormat publishFormat, Encoding encoding) { try { await RMarkdownRenderAsync(session, fs, inputFilePath, outputFilePath, GetDocumentTypeString(publishFormat), encoding.CodePage, appShell); } catch (IOException ex) { await appShell.ShowErrorMessageAsync(ex.Message); } catch (RException ex) { await appShell.ShowErrorMessageAsync(ex.Message); } catch (OperationCanceledException) { } }