Example #1
0
        public LinkFactory(ILinkProvider linkProvider, IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {
            if (linkProvider == null)
                throw new ArgumentNullException("linkProvier");

            LinkProvider = linkProvider;
        }
        public TaxonomyFactory(ITaxonomyProvider taxonomyProvider, IFactoryCommonServices factoryCommonServices)
            :base(factoryCommonServices)
        {
            if (taxonomyProvider == null)
                throw new ArgumentNullException("taxonomyProvider");

            TaxonomyProvider = taxonomyProvider;
        }
        public ComponentPresentationFactory(IComponentPresentationProvider componentPresentationProvider, IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {
            if (componentPresentationProvider == null)
                throw new ArgumentNullException("componentPresentationProvider");

            ComponentPresentationProvider = componentPresentationProvider;
            //overriding cacheAgent GetLastPublished property
            //CacheAgent.GetLastPublishDateCallBack = GetLastPublishedDateCallBack;
        }
        public BinaryFactory(IBinaryProvider binaryProvider, IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {
            if (binaryProvider == null)
                throw new ArgumentNullException("binaryProvider");

            BinaryProvider = binaryProvider;
            //overriding cacheAgent GetLastPublished property
            //CacheAgent.GetLastPublishDateCallBack = GetLastPublishedDateCallBack;
        }
Example #5
0
        public LinkFactory(ILinkProvider linkProvider, IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {
            if (linkProvider == null)
            {
                throw new ArgumentNullException("linkProvier");
            }

            LinkProvider = linkProvider;
        }
Example #6
0
        public TaxonomyFactory(ITaxonomyProvider taxonomyProvider, IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {
            if (taxonomyProvider == null)
            {
                throw new ArgumentNullException("taxonomyProvider");
            }

            TaxonomyProvider = taxonomyProvider;
        }
        public ComponentFactory( IComponentPresentationFactory componentPresentationFactory,
                            IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {

            if (componentPresentationFactory == null)
                throw new ArgumentNullException("componentPresentationFactory");

            ComponentPresentationFactory = componentPresentationFactory;
        }
Example #8
0
        public ComponentFactory(IComponentPresentationFactory componentPresentationFactory,
                                IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {
            if (componentPresentationFactory == null)
            {
                throw new ArgumentNullException("componentPresentationFactory");
            }

            ComponentPresentationFactory = componentPresentationFactory;
        }
Example #9
0
        public BinaryFactory(IBinaryProvider binaryProvider, IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {
            if (binaryProvider == null)
            {
                throw new ArgumentNullException("binaryProvider");
            }

            BinaryProvider = binaryProvider;
            //overriding cacheAgent GetLastPublished property
            //CacheAgent.GetLastPublishDateCallBack = GetLastPublishedDateCallBack;
        }
 public BinaryFactory(IBinaryProvider binaryProvider, IFactoryCommonServices factoryCommonServices)
     : base(factoryCommonServices)
 {
     if (binaryProvider == null)
     {
         throw new ArgumentNullException("binaryProvider");
     }
     BinaryProvider = binaryProvider;
     CacheValueNull = new Binary()
     {
         Title = CacheValueNullTitle
     };
 }
Example #11
0
        public FactoryBase(IFactoryCommonServices factoryCommonServices)
        {
            if (factoryCommonServices == null)
            {
                throw new ArgumentNullException("factoryCommonServices");
            }


            LoggerService       = factoryCommonServices.Logger;
            PublicationResolver = factoryCommonServices.PublicationResolver;
            Configuration       = factoryCommonServices.Configuration;
            CacheAgent          = factoryCommonServices.CacheAgent;
        }
Example #12
0
        public PageFactory(IPageProvider pageProvider, IComponentPresentationFactory componentPresentationFactory,
                            IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {
            if (pageProvider == null)
                throw new ArgumentNullException("pageProvider");

            if (componentPresentationFactory == null)
                throw new ArgumentNullException("componentPresentationFactory");

            ComponentPresentationFactory = componentPresentationFactory;
            PageProvider = pageProvider;

        }
Example #13
0
        public PageFactory(IPageProvider pageProvider, IComponentPresentationFactory componentPresentationFactory,
                           IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {
            if (pageProvider == null)
            {
                throw new ArgumentNullException("pageProvider");
            }

            if (componentPresentationFactory == null)
            {
                throw new ArgumentNullException("componentPresentationFactory");
            }

            ComponentPresentationFactory = componentPresentationFactory;
            PageProvider = pageProvider;
        }
Example #14
0
        public ComponentPresentationFactory(IComponentPresentationProvider componentPresentationProvider, IFactoryCommonServices factoryCommonServices)
            : base(factoryCommonServices)
        {
            if (componentPresentationProvider == null)
            {
                throw new ArgumentNullException("componentPresentationProvider");
            }

            ComponentPresentationProvider = componentPresentationProvider;
            //overriding cacheAgent GetLastPublished property
            //CacheAgent.GetLastPublishDateCallBack = GetLastPublishedDateCallBack;
        }