/// <summary>Initializes a new instance of the <see cref="CloudManagerService"/> class and uses the <see cref="IPictureparkServiceSettings.BaseUrl"/> of the <paramref name="settings"/> as Picturepark server URL.</summary> /// <param name="settings">The service settings.</param> public CloudManagerService(ICloudManagerServiceSettings settings) { _httpClient = new HttpClient(); _httpClient.Timeout = settings.HttpTimeout; Initialize(settings, _httpClient); }
private void Initialize(ICloudManagerServiceSettings settings, HttpClient httpClient) { Customer = new CustomerClient(settings, httpClient); Service = new ServiceClient(settings, httpClient); Update = new UpdateClient(settings, httpClient); CloudBackup = new CloudBackupClient(settings, httpClient); EnvironmentProcess = new EnvironmentProcessClient(settings, httpClient); Environment = new EnvironmentClient(settings, httpClient); ServiceProvider = new ServiceProviderClient(settings, httpClient); CustomerServiceProvider = new CustomerServiceProviderClient(settings, httpClient); ContentBackup = new ContentBackupClient(settings, httpClient); Maintenance = new MaintenanceClient(settings, httpClient); }
/// <summary>Initializes a new instance of the <see cref="CloudManagerService"/> class and uses the <see cref="IPictureparkServiceSettings.BaseUrl"/> of the <paramref name="settings"/> as Picturepark server URL.</summary> /// <param name="settings">The service settings.</param> /// <param name="httpClient">The HTTP client.</param> public CloudManagerService(ICloudManagerServiceSettings settings, HttpClient httpClient) { Initialize(settings, httpClient); }
/// <summary>Initializes a new instance of the <see cref="ClientBase" /> class.</summary> /// <param name="settings">The client settings.</param> protected ClientBase(ICloudManagerServiceSettings settings) { _settings = settings; }