Created
October 11, 2011 17:13
-
-
Save factormystic/1278717 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Weekend project: A little Nancy (http://nancyfx.org) extension which exposes your methods in C# as async calls in Javascript. I really like what Now.js is doing for RPC on Node and want to clone it, so this weekend's task was a fun proof of concept. | |
All you need to do is subclass my thing and write some public methods:<br> | |
http://i.imgur.com/NnqQo.png | |
Then in your page, include 'nanio.js' which is emitted by my lib (and JQuery, currently the sole external dependency since I'm not currently interested in rewriting ajax handling | |
http://i.imgur.com/TNlhX.png | |
And then your calls work! Yay! | |
http://i.imgur.com/1TuZa.png | |
Todo: rip off the rest of Now.js's features :v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment