|
126 | 126 | - [Example code](#example-code-15) |
127 | 127 | - [More details about RSCG |
128 | 128 | RSCG\_AMS](#more-details-about-rscg-rscg_ams) |
| 129 | +- [RSCG number 17 : |
| 130 | + HttpClientGenerator](#rscg-number-17--httpclientgenerator) |
| 131 | + - [What RSCG HttpClientGenerator can |
| 132 | + do](#what-rscg-httpclientgenerator-can-do) |
| 133 | + - [Example code](#example-code-16) |
| 134 | + - [More details about RSCG |
| 135 | + HttpClientGenerator](#more-details-about-rscg-httpclientgenerator) |
129 | 136 | - [RSCG - worth mention](#rscg---worth-mention) |
130 | 137 | - [Final Chapter](#final-chapter) |
131 | 138 | - [Conclusion](#conclusion) |
@@ -1293,6 +1300,58 @@ For more usage features please read : |
1293 | 1300 |
|
1294 | 1301 | [<https://github.com/ignatandrei/RSCG_Examples/tree/main/CI_Version>](https://github.com/ignatandrei/RSCG_Examples/tree/main/CI_Version) |
1295 | 1302 |
|
| 1303 | +## RSCG number 17 : HttpClientGenerator |
| 1304 | + |
| 1305 | +### What RSCG HttpClientGenerator can do |
| 1306 | + |
| 1307 | +HttpClientGenerator is a tool that uses Roslyn code generator feature to |
| 1308 | +write boilerplate HttpClient code for you. |
| 1309 | + |
| 1310 | +### Example code |
| 1311 | + |
| 1312 | +#### Here is the csproj with the references for RSCG HttpClientGenerator |
| 1313 | + |
| 1314 | + |
| 1315 | +<small> |
| 1316 | +[code](http://ignatandrei.github.io/RSCG_Examples/images/HttpClientGenerator/The.csproj) |
| 1317 | +</small> |
| 1318 | + |
| 1319 | +#### The initial code that you start with is |
| 1320 | + |
| 1321 | + |
| 1322 | +<small> |
| 1323 | +[code](http://ignatandrei.github.io/RSCG_Examples/images/HttpClientGenerator/ExistingCode.cs) |
| 1324 | +</small> |
| 1325 | + |
| 1326 | +#### The code below will use the RSCG HttpClientGenerator |
| 1327 | + |
| 1328 | + |
| 1329 | +<small> |
| 1330 | +[code](http://ignatandrei.github.io/RSCG_Examples/images/HttpClientGenerator/Usage.cs) |
| 1331 | +<small> |
| 1332 | + |
| 1333 | +#### The code that is generated by RSCG HttpClientGenerator |
| 1334 | + |
| 1335 | + |
| 1336 | +<small> |
| 1337 | +[code](http://ignatandrei.github.io/RSCG_Examples/images/HttpClientGenerator/GeneratedCode.cs) |
| 1338 | +</small> |
| 1339 | + |
| 1340 | +### More details about RSCG HttpClientGenerator |
| 1341 | + |
| 1342 | +The author of **RSCG HttpClientGenerator** is *Jalal Amini Robati* |
| 1343 | + |
| 1344 | +You cand find **RSCG HttpClientGenerator** at Nuget.org : |
| 1345 | +<https://www.nuget.org/packages/HttpClientGenerator/> and the sources at |
| 1346 | +<https://github.com/Jalalx/HttpClientCodeGenerator> |
| 1347 | + |
| 1348 | +For more usage features please read : |
| 1349 | +<https://github.com/Jalalx/HttpClientCodeGenerator> |
| 1350 | + |
| 1351 | +#### Link to Example Code: |
| 1352 | + |
| 1353 | +[<https://github.com/ignatandrei/RSCG_Examples/tree/main/HttpClientCodeGenerator>](https://github.com/ignatandrei/RSCG_Examples/tree/main/HttpClientCodeGenerator) |
| 1354 | + |
1296 | 1355 | ## RSCG - worth mention |
1297 | 1356 |
|
1298 | 1357 | There are more RSCG that you could see - here is a list that you may |
@@ -1326,6 +1385,7 @@ want to look at: |
1326 | 1385 | 20. <https://github.com/thinktecture/article-roslyn-source-generators> |
1327 | 1386 | 21. <https://github.com/HamedFathi/MockableStaticGenerator> |
1328 | 1387 | 22. <https://github.com/mrtaikandi/MapTo/> |
| 1388 | +23. <https://www.nuget.org/packages/Dnf.SourceGenerators/1.0.0> |
1329 | 1389 |
|
1330 | 1390 | ## Final Chapter |
1331 | 1391 |
|
|
0 commit comments