You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-30Lines changed: 28 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,52 +187,50 @@ Configuration Values:
187
187
### Snippet:
188
188
Because I talked about follow-through up above, I'd be amiss if I didn't provide a sample implementation of calling this code from .NET.
189
189
190
-
Assuming the use of the great *RESTSharp library* for REST api calls, and the Xsl-FO content is validated and parsed as an *XDocument* (Linq2Xml)... this sample should get you started on the .NET side as a client calleing the new PDF microservice.
190
+
Assuming the use of the great *Flurl library* for REST api calls, and the Xsl-FO content is validated and parsed as an *XDocument* (Linq2Xml)... this sample should get you started on the .NET side as a client calleing the new PDF microservice.
191
191
192
-
*NOTE: Just use (RESTSharp)[https://restsharp.dev/] or (Flurl)[https://flurl.dev/] and avoid [incorrectly implementing HttpClient (hint, it should be a singleton)](https://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/)*
192
+
*NOTE: Just use (Flurl)[https://flurl.dev/] or (RESTSharp)[https://restsharp.dev/] and avoid [incorrectly implementing HttpClient (hint, it should be a singleton)](https://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/)*
193
193
194
-
Snippet taken from the [implementation here](https://github.com/cajuncoding/PdfTemplating.XslFO), in my PdfTemplating project but is also readily available as a .NET Client in Nuget -- more details below.
194
+
Here's a very simple client class that will get the job done! But this does not include functionality to handle debugging, viewing the event log which is returned in the response headers (and may be gzipped if large), etc. Therefore you might be interested in the readily available .NET Client that's available in Nuget -- more details below in the _**.NET Client**_ section.
A full blown implementation of `Razor Templating + ApacheFOP.Serverless` is my [PdfTemplating.XslFO project here](https://github.com/cajuncoding/PdfTemplating.XslFO).
233
+
A full blown implementation of `Razor Templating + ApacheFOP.Serverless` is available in my [PdfTemplating.XslFO project here](https://github.com/cajuncoding/PdfTemplating.XslFO).
236
234
237
235
#### .NET Client
238
236
The `PdfTemplating.XslFO` project also provides ready-to-use .NET Client for `ApacheFOP.Serverless` that is readily availalbe in Nuget: [PdfTemplating.XslFO.Render.ApacheFOP.Serverless](https://www.nuget.org/packages/PdfTemplating.XslFO.Render.ApacheFOP.Serverless/)
0 commit comments