CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

FI rev 3

275 Views
Copy Code Show/Hide Line Numbers
var config = ResourceConfiguration.Configure("ContactManager").
    Conventions(c =>
        {
            c.Method("POST").To(m => m.Name.StartsWith("Updated"));
            c.Method("DELETE").To(m => m.Name.StartsWith("Remove"));
            c.Uri(t => GetUriFromType(t));
            c.Model(t => GetModelFromResource(t));
        }
    ).
    ResourceScanner<MyResourceScanner>().
    ConfigurationScanner<MyConfigurationScanner>();
by Glenn Block
  August 22, 2010 @ 11:03pm

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate