Implemented auto-mapper for mapping and converted over the user mappings. Got the gravatar directive working now too. Removed all umbracoUseMediumTrust settings.

This commit is contained in:
Shannon
2013-06-18 17:22:01 +10:00
parent feeba0e6f9
commit 816edce620
14 changed files with 71 additions and 56 deletions

View File

@@ -75,6 +75,8 @@ namespace Umbraco.Core
//initialize the DatabaseContext
dbContext.Initialize();
InitializeModelMappers();
//now we need to call the initialize methods
ApplicationEventsResolver.Current.ApplicationEventHandlers
.ForEach(x => x.OnApplicationInitialized(UmbracoApplication, ApplicationContext));
@@ -95,6 +97,14 @@ namespace Umbraco.Core
ApplicationContext = ApplicationContext.Current = new ApplicationContext(dbContext, serviceContext);
}
/// <summary>
/// This method allows for configuration of model mappers
/// </summary>
protected virtual void InitializeModelMappers()
{
//TODO: There will most likely be AutoMapper configs to put in here, we know they exist in web for now so we'll leave this here for future use
}
/// <summary>
/// Special method to initialize the ProfilerResolver
/// </summary>