Comments (10)
'Plan' is such a big word, but I've considered it :)
I think it's a good idea.
from hyprlinkr.
Just to be clear, if I pass in the async method without awaiting or invoking result your code works, but VS is raising warnings all over the place.
So if there is a room in your 'plan' it would be nice to kill those warnings.
Thanks
On Sep 18, 2013, Mark Seemann [email protected] wrote:
'Plan' is such a big word, but I've considered it :)
I think it's a good idea.
Reply to this email directly or view it on GitHub:
#20 (comment)
-- Sent from my Android phone with K-@ Mail. Please excuse my brevity.
from hyprlinkr.
The problem with adding support for this right now is that in order to do that, I'd have to upgrade Hyprlinkr to target .NET 4.5, and right now it only supports .NET 4.0.
However, the up-coming Web API 2 (version 5.0.0 AFAICT) seems to support only .NET 4.5, so it seems reasonable to upgrade Hyprlinkr at that time too. After that, I'll add support for async controllers.
from hyprlinkr.
I found a way to implement this on .NET 4.0, so the latest version of Hyprlinkr (0.9.9) now supports async Controller methods like this:
Uri actual = linker.GetUriAsync((AsyncController c) => c.Get(id)).Result;
from hyprlinkr.
Great, I'll give it a try and let you know how it goes.
Thanks
from hyprlinkr.
Just to confirm that everything is working as expected - without warnings ;) ... thanks again.
from hyprlinkr.
Thank you for reporting back :)
from hyprlinkr.
AsyncController is MVC specific, do you have any workaround for WebAPI?
from hyprlinkr.
Hi @barbosatek, the above example is working in WebAPI so could you give us an example if the issue you have ?
from hyprlinkr.
AsyncController is MVC specific, do you have any workaround for WebAPI?
Discussion moved to #42
from hyprlinkr.
Related Issues (20)
- Extensions with UrlHelper HOT 1
- Logo HOT 9
- AttributeRouting
- NullReferenceException HOT 2
- Support for Uri Templates in v2? HOT 6
- Example to create a link to a POST methods? HOT 9
- Does not seem to be working with web api 2 properly ... HOT 9
- Improve logo HOT 5
- How do I use hyprlinkr in a non-typesafe manner? HOT 3
- Use Paket HOT 6
- Templates generation HOT 3
- Handler for Ploeh.Hyprlinkr.IResourceLinkParser was not found HOT 3
- Wrong url parameters generation for controller actions returning statuses HOT 1
- Cannot handle actions that return only Task HOT 3
- Support for Async controller methods for WebAPI HOT 4
- Support for Relative Uris HOT 2
- Support for attribute-based route names HOT 10
- A link to another controller's parameterless method includes current request's parameter HOT 2
- redirect HOT 4
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 hyprlinkr.