/WCFWebApi/samples/scenario/ContactManager_Simple/Global.asax.cs
C# | 21 lines | 15 code | 3 blank | 3 comment | 0 complexity | 442f9933f8fdef190bcaae05d176f38d MD5 | raw file
Possible License(s): CC-BY-SA-3.0, Apache-2.0
- // <copyright>
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // </copyright>
-
- namespace ContactManager_Simple
- {
- using System;
- using System.Web.Routing;
- using Microsoft.ApplicationServer.Http;
-
- public class Global : System.Web.HttpApplication
- {
- protected void Application_Start(object sender, EventArgs e)
- {
- RouteTable.Routes.SetDefaultHttpConfiguration(new WebApiConfiguration() { EnableTestClient = true });
-
- RouteTable.Routes.MapServiceRoute<ContactApi>("Contact");
- RouteTable.Routes.MapServiceRoute<ContactsApi>("Contacts");
- }
- }
- }