public static void RegisterRoutes(HttpRouteCollection routes)
        {
            // See http://github.com/mccalltd/AttributeRouting/wiki for more options.
            // To debug routes locally using the built in ASP.NET development server, go to /routes.axd

            routes.MapHttpAttributeRoutes();
        }
Exemple #2
0
        public static void RegisterRoutes(HttpRouteCollection routes)
        {
            // See http://github.com/mccalltd/AttributeRouting/wiki for more options.
            // To debug routes locally using the built in ASP.NET development server, go to /routes.axd

            routes.MapHttpAttributeRoutes();
        }
        public static void RegisterRoutes(HttpRouteCollection routes)
        {
            // See http://github.com/mccalltd/AttributeRouting/wiki for more options.
            // To debug routes locally using the built in ASP.NET development server, go to /routes.axd

            Assembly assembly = Assembly.GetAssembly(typeof(IPDetectServer.Services.ServiceAssemble));
            routes.MapHttpAttributeRoutes(config=>config.AddRoutesFromAssembly(assembly));
        }
 public static void RegisterRoutes(HttpRouteCollection routes)
 {
     routes.MapHttpAttributeRoutes(
                         config =>
                         {
                             config.AddRoutesFromAssembly(Assembly.GetExecutingAssembly());
                             config.AddDefaultRouteConstraint(@"^id$", new RegexRouteConstraint(@"^\d+$"));
                         });
 }
Exemple #5
0
        public static void RegisterRoutes(HttpRouteCollection routes)
        {
            // See http://github.com/mccalltd/AttributeRouting/wiki for more options.
            // To debug routes locally using the built in ASP.NET development server, go to /routes.axd

            routes.MapHttpAttributeRoutes(config =>
            {
                config.AddRoutesFromAssembly(Assembly.GetExecutingAssembly());
            });
        }
Exemple #6
0
        public static void RegisterRoutes(HttpRouteCollection routes)
        {
            // See http://github.com/mccalltd/AttributeRouting/wiki for more options.
            // To debug routes locally using the built in ASP.NET development server, go to /routes.axd

            //routes.MapHttpAttributeRoutes();
            routes.MapHttpAttributeRoutes(cfg =>
            {
                cfg.InMemory = true;
                cfg.AutoGenerateRouteNames = true;
                cfg.AddRoutesFromAssemblyOf <ItemController>();
            });
        }
        public static void RegisterRoutes(HttpRouteCollection routes)
        {
            // See http://github.com/mccalltd/AttributeRouting/wiki for more options.
            // To debug routes locally using the built in ASP.NET development server, go to /routes.axd

            //routes.MapHttpAttributeRoutes();
            routes.MapHttpAttributeRoutes(cfg =>
            {
                cfg.InMemory = true;
                cfg.AutoGenerateRouteNames = false;
                cfg.AddRoutesFromAssemblyOf<LaserSportDataAPI.Controllers.EventsController>();
            });
        }
        public static void RegisterRoutes(HttpRouteCollection routes)
        {
            // See http://github.com/mccalltd/AttributeRouting/wiki for more options.
            // To debug routes locally using the built in ASP.NET development server, go to /routes.axd
            //routes.MapHttpAttributeRoutes();

            routes.MapHttpAttributeRoutes(config =>
            {
                config.UseLowercaseRoutes = true;
                config.AutoGenerateRouteNames = true;
                config.AddRoutesFromAssembly(Assembly.GetExecutingAssembly());
                config.InMemory = true;
            });
        }
 public static void RegisterRoutes(HttpRouteCollection routes)
 {
     try
     {
         routes.MapHttpAttributeRoutes();
     }
     catch (Exception ex)
     {
         if (ex is System.Reflection.ReflectionTypeLoadException)
         {
             var typeLoadException = ex as ReflectionTypeLoadException;
             var loaderExceptions  = typeLoadException.LoaderExceptions;
         }
     }
     // See http://github.com/mccalltd/AttributeRouting/wiki for more options.
     // To debug routes locally using the built in ASP.NET development server, go to /routes.axd
 }
 public static void RegisterRoutes(HttpRouteCollection routes)
 {
     routes.MapHttpAttributeRoutes();
 }
 public static void RegisterRoutes(HttpRouteCollection routes)
 {
     routes.MapHttpAttributeRoutes();
 }
 void RegisterWebApi(HttpRouteCollection routes)
 {
     routes.MapHttpAttributeRoutes(c => c.AddRoutesFromAssembly(_webApiControllerExample.Assembly));
 }
 void RegisterWebApi(HttpRouteCollection routes)
 {
     routes.MapHttpAttributeRoutes(c => c.AddRoutesFromAssembly(_webApiControllerExample.Assembly));
 }