Comments (8)
so I'm contacting the package author ;)
from restease.
It requires a TypeBuilder, which is only available in .net projects and not pcls. I'm considering changing things so that this restriction is lifted for 2.0, but for now Refit is probably what you're after, unfortunately.
from restease.
oh ok, too bad ;) thanks
from restease.
Sorry :( It's one of the trade-offs I made for not having RefitStubs.cs
in your project.
from restease.
what's the issues with the stub ? besides having an ugly random file laying around ? cause if its the only issue blocking the use on mobile platforms, it's too bad
from restease.
Mainly an ugly random file that constantly changes lying around. Also, I wanted more intelligence in the auto-generated interface implementation: it means we can get away with less reflection, less boxing, things like method overloads work with issue, etc. Also auto-generating IL is much easier than auto-generating C#.
I've got plans to generate the interface implementations at compile-time and inject them into the assembly being compiled, but that's a little way off (I need to get my head around Mono.Cecil first...)
from restease.
Curious if you've gotten back to this? Would LOVE to use this in my Xamarin apps
from restease.
I went down the route of supporting .net core instead: I support netstandard1.3. I'm not sure where that sits in the PCL nomenclature... The .NET Platform Standard implies that Xamarin supports all netstandard versions.
There were plans to use the source generation features of VS15 to support a wider range of netstandard versions, but they were canned. I then considered using Fody, but that doesn't yet have .net core support either..
from restease.
Related Issues (20)
- Strange enum error with SourceGenerator HOT 3
- Runtime exception with version 1.5.3 HOT 2
- Header is not updated on retry policy [RestEase+Polly combination] HOT 2
- The UseWithRestEaseClient<T> extension method does not allow to pass the RequestModifier HOT 1
- Define the "value" in a Variable Query Parameter which is defined on the interface HOT 2
- Custom RequestQueryParamSerializer -> Output parameters are automatically URL-encoded HOT 3
- Request Modifier not reached when chained with ConfigurePrimaryHttpMessageHandler HOT 4
- async resquest is not found HOT 2
- RestEase.SourceGenerator not using `*.g.cs` in generated source files. HOT 2
- Using Task<Response<T>> when T is a string does not work. HOT 2
- [suggestion] Add ctor to ReseEase that allow to add both RequestModifier and HttpMessageHandler HOT 1
- SSL exception on Windows 7 HOT 1
- Question: Extend the RestEaseGeneratedType ? HOT 2
- Add InstanceConfigurer to the readme
- Changelog for v1.6 ? HOT 2
- When polly is used at rest client level and an (locally running) API is called which throws an error, the API is not retried HOT 1
- httpclient alternative? HOT 1
- SourceGenerator fails on interfaces with the same name HOT 2
- Extract ApiException creation from SendRequestAsync method HOT 4
- Possibility to send body content (string) in POST request HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restease.