Last post Jan 02, 2009 02:05 PM by tvish
Dec 23, 2008 10:49 AM|colinjack|LINK
I wondered if you'd considered how you want people to include links in representations, in particular since we're specifying UriTemplates in the OperationContract I wondered if we can reuse that information somehow when creating links?
Jan 02, 2009 02:05 PM|tvish|LINK
UriTemplate class has bind methods that you can use for creating links. So one way to do this is to define constant strings for your uri templates in a static class, reference them from your webget/webinvoke attributes as well as create UriTemplate objects
using them for linking purposes.
Does that help? The VS template classes for Collection and AtomPub do that.