Geeks With Blogs
.Nettuce Code Salad June 2013 Entries
ServiceStack dynamic Route Attribute creator
public class RouteFor<T> { readonly string path; string verbs; public static string Path { get { return GetRouteAttribute().Path; } } public static string Verbs { get { return GetRouteAttribute().Verbs; } } static RouteAttribute GetRouteAttribute() { var routeAttribute = TypeDescriptor.GetAttribute... if (routeAttribute == null) throw new NullReferenceException(stri... not defined for {0}", typeof(T).Name)); return routeAttribute; ......

Posted On Wednesday, June 12, 2013 7:17 PM

Copyright © Jon Canning | Powered by: GeeksWithBlogs.net