Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        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;
        }