public ChildrenCast(ISitecoreService service, Item item, GetItemOptions getModelOptions, LazyLoadingHelper lazyLoadingHelper) { _service = service; _item = item; _getModelOptions = getModelOptions; _lazyLoadingHelper = lazyLoadingHelper; }
public CreateInterfaceTask( LazyLoadingHelper lazyLoadingHelper ) { _lazyLoadingHelper = lazyLoadingHelper; Name = "CreateInterfaceTask"; }
public LazyObjectInterceptor(ObjectConstructionArgs args, LazyLoadingHelper lazyLoadingHelper) { _args = args; Values = new ConcurrentDictionary <string, object>(); _mappingContext = _args.AbstractTypeCreationContext.CreateDataMappingContext(null); //if lazy loading diabled load all values now if (!lazyLoadingHelper.IsEnabled(args.Options)) { LoadAllValues(); } }
public DependencyResolver(Config config) { Config = config; LazyLoadingHelper = new LazyLoadingHelper(); Log = new Log(); QueryParameterFactory = new QueryParameterConfigFactory(this); DataMapperResolverFactory = new DataMapperTaskConfigFactory(this); DataMapperFactory = new DataMapperConfigFactory(this); ConfigurationResolverFactory = new ConfigurationResolverConfigFactory(this); ObjectConstructionFactory = new ObjectConstructionTaskConfigFactory(this); ObjectSavingFactory = new ObjectSavingTaskConfigFactory(this); ConfigurationMapFactory = new ConfigurationMapConfigFactory(this); GlassHtmlFactory = new GlassHtmlFactory(this); LazyLoadingHelper = new LazyLoadingHelper(); CacheFactory = new CacheFactory(() => new NetMemoryCacheManager()); }
/// <summary> /// Initializes a new instance of the <see cref="LazyItemEnumerable{T}"/> class. /// </summary> /// <param name="getItems">The get items.</param> /// <param name="isLazy">if set to <c>true</c> [is lazy].</param> /// <param name="inferType">if set to <c>true</c> [infer type].</param> /// <param name="service">The service.</param> /// <param name="versionHandler"></param> public LazyItemEnumerable( GetItemsOptions options, ISitecoreService service, LazyLoadingHelper lazyLoadingHelper ) { _options = options; _service = service; _lazyItemList = new Lazy <IList <T> >(() => ProcessItems()); if (!lazyLoadingHelper.IsEnabled(options)) { // Force the loading of the items into the list so this occurs in the current security scope. var dummy = _lazyItemList.Value; } }
protected IocTaskBase(LazyLoadingHelper lazyLoadingHelper) { _lazyLoadingHelper = lazyLoadingHelper; Name = "IocTaskBase"; }
public SimpleInjectorTask(LazyLoadingHelper lazyLoadingHelper) : base(lazyLoadingHelper) { }
public SitecoreChildrenCastMapper(LazyLoadingHelper lazyLoadingHelper) { _lazyLoadingHelper = lazyLoadingHelper; ReadOnly = true; }
public CreateConcreteTask(LazyLoadingHelper lazyLoadingHelper) { _lazyLoadingHelper = lazyLoadingHelper; Name = "CreateConcreteTask"; }