Exemplo n.º 1
0
        public FactoriesFacade(IPublicationResolver resolver, ILogger logger, IDD4TConfiguration configuration, ICacheAgent cacheAgent, ISerializerService serializerService)
        {
            if (resolver == null)
            {
                throw new ArgumentNullException("resolver");
            }

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

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

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

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

            SerializerService   = serializerService;
            Logger              = logger;
            PublicationResolver = resolver;
            Configuration       = configuration;
            CacheAgent          = cacheAgent;
        }
Exemplo n.º 2
0
        public FactoryCommonServices(IPublicationResolver resolver, ILogger logger,
                                     IDD4TConfiguration configuration, ICacheAgent cacheAgent)
        {
            if (resolver == null)
            {
                throw new ArgumentNullException("resolver");
            }

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

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

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

            Logger = logger;
            PublicationResolver = resolver;
            Configuration       = configuration;
            CacheAgent          = cacheAgent;
        }
Exemplo n.º 3
0
        public BaseProvider(IProvidersCommonServices providersCommonServices)
        {
            if (providersCommonServices == null)
                throw new ArgumentNullException("providersCommonServices");

            LoggerService = providersCommonServices.Logger;
            PublicationResolver = providersCommonServices.PublicationResolver;
            Configuration = providersCommonServices.Configuration;

        }
        public BaseProvider(IProvidersCommonServices providersCommonServices)
        {
            if (providersCommonServices == null)
            {
                throw new ArgumentNullException("providersCommonServices");
            }

            LoggerService       = providersCommonServices.Logger;
            PublicationResolver = providersCommonServices.PublicationResolver;
            Configuration       = providersCommonServices.Configuration;
        }
        //Temp fix: Remove after 01-01-2016; IHttpMessageHandlerFactory is registered in the DI.
        //The DI needs to be upgraded for the registeration. below code prevent a runtime error in case that the DI is not upgraded.
        public BaseProvider(IProvidersCommonServices commonServices)
        {
            if (commonServices == null)
            {
                throw new ArgumentNullException("commonServices");
            }

            Logger = commonServices.Logger;
            _httpMessageHandlerFactory = new DefaultHttpMessageHandlerFactory();
            _publicationResolver       = commonServices.PublicationResolver;
            Configuration = commonServices.Configuration;
        }
        public ProvidersCommonServices(IPublicationResolver resolver, ILogger logger, IDD4TConfiguration configuration)
        {
            if (resolver == null)
                throw new ArgumentNullException("resolver");

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

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

            Logger = logger;
            PublicationResolver = resolver;
            Configuration = configuration;
        }
        public FactoryCommonServices(IPublicationResolver resolver, ILogger logger,
                        IDD4TConfiguration configuration, ICacheAgent cacheAgent)
        {
            if (resolver == null)
                throw new ArgumentNullException("resolver");

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

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

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

            Logger = logger;
            PublicationResolver = resolver;
            Configuration = configuration;
            CacheAgent = cacheAgent;
        }
        public ProvidersCommonServices(IPublicationResolver resolver, ILogger logger, IDD4TConfiguration configuration)
        {
            if (resolver == null)
            {
                throw new ArgumentNullException("resolver");
            }

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

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

            Logger = logger;
            PublicationResolver = resolver;
            Configuration       = configuration;
        }
Exemplo n.º 9
0
        public FactoriesFacade(IPublicationResolver resolver, ILogger logger, IDD4TConfiguration configuration, ICacheAgent cacheAgent, ISerializerService serializerService)
        {
            if (resolver == null)
                throw new ArgumentNullException("resolver");

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

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

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

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

            SerializerService = serializerService;
            Logger = logger;
            PublicationResolver = resolver;
            Configuration = configuration;
            CacheAgent = cacheAgent;
        }