Beispiel #1
0
 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) {
     } 
 }
Beispiel #2
0
 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) {
     }
 }