コード例 #1
0
        public AgentControlDefinitionAccessor(IAgentControlDefinitionServiceUrlProvider controlDefinitionServiceUrlProvider, IMachineNameProvider machineNameProvider, IRESTClientFactory restClientFactory, IRESTRequestFactory requestFactory)
        {
            if (controlDefinitionServiceUrlProvider == null)
            {
                throw new ArgumentNullException("controlDefinitionServiceUrlProvider");
            }

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

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

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

            this.controlDefinitionServiceUrlProvider = controlDefinitionServiceUrlProvider;
            this.machineNameProvider = machineNameProvider;
            this.restClientFactory   = restClientFactory;
            this.requestFactory      = requestFactory;
        }
        public AgentControlDefinitionAccessor(IAgentControlDefinitionServiceUrlProvider controlDefinitionServiceUrlProvider, IMachineNameProvider machineNameProvider,  IRESTClientFactory restClientFactory, IRESTRequestFactory requestFactory)
        {
            if (controlDefinitionServiceUrlProvider == null)
            {
                throw new ArgumentNullException("controlDefinitionServiceUrlProvider");
            }

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

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

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

            this.controlDefinitionServiceUrlProvider = controlDefinitionServiceUrlProvider;
            this.machineNameProvider = machineNameProvider;
            this.restClientFactory = restClientFactory;
            this.requestFactory = requestFactory;
        }
        public RESTBasedSystemInformationSender(IRESTBasedSystemInformationSenderConfigurationProvider systemInformationSenderConfigurationProvider, IRESTClientFactory restClientFactory, IRESTRequestFactory requestFactory)
        {
            if (systemInformationSenderConfigurationProvider == null)
            {
                throw new ArgumentNullException("systemInformationSenderConfigurationProvider");
            }

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

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

            this.systemInformationSenderConfigurationProvider = systemInformationSenderConfigurationProvider;
            this.restClientFactory = restClientFactory;
            this.requestFactory = requestFactory;
        }
コード例 #4
0
        public HttpStatusCodeFetcher(IRESTClientFactory restClientFactory, IRESTRequestFactory requestFactory, IUrlComponentExtractor urlComponentExtractor)
        {
            if (restClientFactory == null)
            {
                throw new ArgumentNullException("restClientFactory");
            }

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

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

            this.restClientFactory     = restClientFactory;
            this.requestFactory        = requestFactory;
            this.urlComponentExtractor = urlComponentExtractor;
        }
コード例 #5
0
        public HttpStatusCodeFetcher(IRESTClientFactory restClientFactory, IRESTRequestFactory requestFactory, IUrlComponentExtractor urlComponentExtractor)
        {
            if (restClientFactory == null)
            {
                throw new ArgumentNullException("restClientFactory");
            }

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

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

            this.restClientFactory = restClientFactory;
            this.requestFactory = requestFactory;
            this.urlComponentExtractor = urlComponentExtractor;
        }
コード例 #6
0
        public RESTBasedSystemInformationSender(IRESTBasedSystemInformationSenderConfigurationProvider systemInformationSenderConfigurationProvider, IRESTClientFactory restClientFactory, IRESTRequestFactory requestFactory)
        {
            if (systemInformationSenderConfigurationProvider == null)
            {
                throw new ArgumentNullException("systemInformationSenderConfigurationProvider");
            }

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

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

            this.systemInformationSenderConfigurationProvider = systemInformationSenderConfigurationProvider;
            this.restClientFactory = restClientFactory;
            this.requestFactory    = requestFactory;
        }