U4-1357 - Add properties to base classes to expose new properties from Application context

Created by Shannon Deminick 28 Dec 2012, 15:30:03 Updated by Sebastiaan Janssen 28 Dec 2012, 23:15:00

Relates to: U4-1358

Some of the new properties of the ApplicationContext with 6.0 should be exposed directly as properties of these base classes for ease of use for developers instead of having to access the ApplicationContext singleton. This makes things nicer for unit testing and for developers.

We should expose as properties of these base classes:

public ServiceContext Services {get; } public DatabaseContext DatabaseContext {get; }

The base classes that these should be added to are:

SurfaceController RenderMvcController

Comments

Shannon Deminick 28 Dec 2012, 15:36:50

We should add these to umbraco.BasePages.BasePage too, however this will require that this class is migrated to the 'Web' project. Which is a good idea. We could probably clean it up a little too and obsolete the old one. Will create a task for it.


Priority: Normal

Type: Task

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category: Architecture

Backwards Compatible: False

Fix Submitted:

Affected versions:

Due in version: 6.0.0

Sprint:

Story Points:

Cycle: