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 5

211 Views
Copy Code Show/Hide Line Numbers
var config = ResourceConfiguration.Configure("ContactManager").
    Conventions(c =>
        {
            c.PostMethod(m => m.Name.StartsWith("Updated"));
            c.DeleteMethod(m => m.Name.StartsWith("Remove"));
            c.Uri<MyUriConvention>();
            c.Model<MyModelConvention>();
        }
    ).
    ResourceScanner<MyResourceScanner>().
    ConfigurationScanner<MyConfigurationScanner>();
by Glenn Block
  August 22, 2010 @ 11:58pm

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