|
1 |
| -# RestSharp - Simple .NET REST Client |
2 |
| - |
3 |
| -[](https://ci.appveyor.com/project/hallem/restsharp) |
4 |
| - |
5 |
| -[](https://gitter.im/RestSharp/RestSharp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
| 1 | +# RestSharp - Simple .NET Compact Framework REST Client |
6 | 2 |
|
7 | 3 | ### [Official Site][1] - [@RestSharp][2]
|
8 | 4 |
|
9 | 5 | ### License: Apache License 2.0
|
10 | 6 |
|
11 | 7 | ### Features
|
12 | 8 |
|
13 |
| -* Supports .NET 3.5+, Mono, Mono for Android, UWP |
14 |
| -* Easy installation using [NuGet](http://nuget.org/packages/RestSharp) for most .NET flavors |
15 |
| -* Supports strong naming using [NuGet](http://nuget.org/packages/RestSharpSigned) for most .NET flavors |
| 9 | +* Supports .NET 3.5 Compact Framework |
16 | 10 | * Automatic XML and JSON deserialization
|
| 11 | +* Supports JSON.NET for serialization if required |
17 | 12 | * Supports custom serialization and deserialization via ISerializer and IDeserializer
|
18 | 13 | * Fuzzy element name matching ('product_id' in XML/JSON will match C# property named 'ProductId')
|
19 | 14 | * Automatic detection of type of content returned
|
|
24 | 19 | * Multi-part form/file uploads
|
25 | 20 | * T4 Helper to generate C# classes from an XML document
|
26 | 21 |
|
| 22 | +The primary difference between this version and the regular version is that this one has been customized to |
| 23 | +compile and support the .NET Compact Framework. Although no new development is being done on Compact Framework |
| 24 | +and Windows CE by Microsoft, a lot of existing Line Of Business applications and industrial handhelds still |
| 25 | +support Windows CE. For our particular use we needed to move to REST for all future development and this project is a |
| 26 | +stepping stone to let us bring the mobile client over to the REST platform so we can eventually migrate it more easily |
| 27 | +to Android. Since I needed this, I figured others might need it also. |
| 28 | + |
| 29 | +A couple of things are not supported on the Compact Framework, like Cookies. So not everythign will work, but it works great |
| 30 | +for most normal REST stuff. Also if you wish to use JSON.NET rather than the default simple JSON serializer, you can still download |
| 31 | +and use JSON.NET 3.5.8 which was the last official version to support the Compact Framework. |
| 32 | + |
| 33 | +https://github.com/JamesNK/Newtonsoft.Json/releases/tag/3.5.8 |
| 34 | + |
27 | 35 | ```csharp
|
28 | 36 | var client = new RestClient("http://example.com");
|
29 | 37 | // client.Authenticator = new HttpBasicAuthenticator(username, password);
|
|
0 commit comments