public AnalyzeRepository(IUriProvider clusterUri, IHttpLayer httpLayer) { if (clusterUri == null || clusterUri.Uri == null) throw new ArgumentNullException("clusterUri", "The analyze repository requires a uri provider for the elastic cluster."); _ClusterUri = clusterUri.Uri; _httpLayer = httpLayer; }
public StateRepository(IUriProvider clusterUri, IHttpLayer httpLayer) { if (clusterUri == null || clusterUri.Uri == null) throw new ArgumentNullException("clusterUri", "Cluster uri is required for the Cluster State Repository."); _clusterUri = clusterUri; _httpLayer = httpLayer; }
public SettingsRepository(IUriProvider clusterUri, IHttpLayer httpLayer) { if (clusterUri == null || clusterUri.Uri == null) throw new ArgumentNullException("clusterUri", "Cluster uri is required for the Settings Repository."); _ClusterUri = new Uri(clusterUri.Uri.GetLeftPart(UriPartial.Authority)); _httpLayer = httpLayer; }
public MappingRepository(IUriProvider clusterUri, ISettingsRepository settingsRepository, IHttpLayer httpLayer) { if (clusterUri == null || clusterUri.Uri == null) throw new ArgumentNullException("clusterUri", "The mapping repository requires a uri provider for the elastic cluster."); _ClusterUri = clusterUri.Uri; _httpLayer = httpLayer; _SettingsRepository = settingsRepository; }