Stealing the original json codec, I've implemented a jsonp codec, code below.
Really enjoying openrasta so far - very quick to get up and running, simple conventions, and easily extendable !
To use the codec :
ResourceSpace.Has.ResourcesOfType<MyStuff>()
.AtUri("/mystuff")
.HandledBy<MyStuffHandler>()
.TranscodedBy<JsonpDataContractCodec>();
.AtUri("/mystuff")
.HandledBy<MyStuffHandler>()
.TranscodedBy<JsonpDataContractCodec>();
Thanks. I'm going to steel this. Although isn't the default convention for callback "callback" ?
ReplyDelete