public static void Start() { var resolver = Context.Default?.DependencyResolver ?? GlassMapperScCustom.CreateResolver(); var context = Context.Default ?? Context.Create(resolver); LoadConfigurationMaps(resolver, context); context?.Load(GlassMapperScCustom.GlassLoaders()); GlassMapperScCustom.PostLoad(); }
public static void Start() { //install the custom services var resolver = GlassMapperScCustom.CreateResolver(); //create a context var context = Glass.Mapper.Context.Create(resolver); LoadConfigurationMaps(resolver, context); context.Load( GlassMapperScCustom.GlassLoaders() ); GlassMapperScCustom.PostLoad(resolver); //EditFrameBuilder.EditFrameItemPrefix = "Glass-"; }