Created
January 15, 2014 20:13
-
-
Save mgroves/8443643 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class BasePage : Page | |
| { | |
| public BasePage() | |
| { | |
| ObjectFactory.BuildUp(this); | |
| } | |
| } | |
| public partial class _Default : BasePage // new base class | |
| { | |
| public IWhateverService WhateverService { private get; set; } | |
| public ISomethingElse SomethingElseService { private get; set; } | |
| protected void Page_Load(object sender, EventArgs e) | |
| { | |
| Response.Write(WhateverService.HelloWorld()); | |
| Response.Write(SomethingElseService.HelloWorld2()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment