Create my own implementation of IController

Last post 04-04-2008 2:24 AM by Eilon. 1 replies.

Sort Posts:

  • Create my own implementation of IController

    03-30-2008, 7:02 PM
    • Contributor
      2,724 point Contributor
    • dba123
    • Member since 12-13-2003, 12:04 AM
    • Posts 1,331

    I need to know how I'd go about creating my own IController so that there is a contract to require consumers to use specific REST controller methods that we define in our own Controller Interface (I don't mean implement the Controller from MVC, I think I am talking about Implementing our own Interface to require that only those methods can be defined in any controller created in our web app when using our Interface that will implement those REST methods).  I don't know a lot about implementing Interfaces but specifically I'm trying to figure out where to put this IController I create and then how to implement it.  Do I create a new project, include the MVC assemblies then start creating my custom interfaces and then include that in our web project or what? 

    When is Microsoft going to get rid of VB.NET!
  • Re: Create my own implementation of IController

    04-04-2008, 2:24 AM
    • Contributor
      5,597 point Contributor
    • Eilon
    • Member since 06-26-2002, 2:14 PM
    • Redmond, WA
    • Posts 954
    • AspNetTeam

    Hi there,

    One thing I recommend you do is take a look a how we implemented our own Controller base class by downloading the source code to the MVC project. You can get the source code on the CodePlex web site:

    http://www.codeplex.com/aspnet/

    If you have any further questions feel free to post them on the forums here!

    Thanks,

    Eilon

    Blog: http://weblogs.asp.net/LeftSlipper/
Page 1 of 1 (2 items)