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; }
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; }