@TomW The issue, is the implementation of an interface at this stage:
public class Example
{
private IReader<TParam, TOutput> reader;
public Example(IReader reader)
{
}
}
@Greg - But beyond that. what do you do with reader? You are injecting a customer which inherits from an IReader already that you use to inject into the reader? But now you have lost the exposed IReader interface!
So now you need to internalize the IReader interface into the Reader class which does not inherit from IReader in order to expose the IReader functionality.
Anyway, check that book out. It will make everything make sense.
@TravisJ [holla](http://holla.urbanup.com/977454) 1. A word used to acknowledge the presence of a fellow companion 2. For a man to express interest in a particularly impressive female specimen 3. To contact via telephone
I have to create a DC through the installation of AD DC, set it on windows server 2003. Now it the book creator is trying to be funny with saying: raise it to windows server 2008 -.-
@AhmedDaou - Unless you do some wacky stuff with the LMHosts file the easiest way is to add a localhost binding for a different port. I assume your default site already binds to localhost:80 so I'd recommend something like localhost:8001
@VictorioBerra there are lots of way to handle it, each layer could implement its own caching. The basic idea is anything you need at each request, cache
@TravisJ If you depend on the behaviour of consumers of your API so strongly that you use words like "always" and "never", I'd hate to see the rest of your code.
@KendallFrey - Sounds like you wanted the always on lane internet. Your ISP has a special this month of $59.95 / month with a 6 month contract and a $40 processing fee.
so I just had a quick question.... why will the C# compiler allow me to define instance fields and constructors in a static class, but will throw a compile time error if one attempts to create an instance?
is there some cool feature about static classes with instance fields or something that I don't know about?
Im getting "OutputCacheAttribute is not allowed on child actions which are children of an already cached child action." its trying to tell me _Layout.cshtml is already a part of a ChildAction?
Okay, well internally, when you call View() it finds the scope from the current controller it is inside. From there it will locate the Views folder for that scope (Areas have nested scope), and then the .ViewStart.cshtml file. That file will contain a reference to the master layout page (default _Layout.cshtml) and the path to it. At that point the Layout begins to builds its return string for the response stream.
@drch if you return PartialView in your ActionResult it should not include a layout... plus this isnt the only place in my Layout where im doing a RenderAction and returing a PartialView() from it
Im not sure about behavior either, but everything is working now so it looks like PartialView makes sure tere is no layout, and [ChildActionOnly] is working well with [OutputCachwe]
And in some places I have to use
@{ Html.RenderAction("Index", "Notifications", new { Area = "" }); }
instead of
@Html.RenderAction("Index", "Notifications", new { Area = "" });