private void SetBaseUri(string searchServiceName, string indexName, string fullyQualifiedDomainName = null) { var validatedSearchServiceName = new SearchServiceName(searchServiceName); var validatedIndexName = new IndexName(indexName); this.BaseUri = validatedSearchServiceName.BuildBaseUriWithIndex(validatedIndexName, fullyQualifiedDomainName); }
private void Initialize(string searchServiceName, SearchCredentials credentials) { var validatedSearchServiceName = new SearchServiceName(searchServiceName); Throw.IfArgumentNull(credentials, "credentials"); this.Credentials = credentials; this.BaseUri = validatedSearchServiceName.BuildBaseUri(); this.Credentials.InitializeServiceClient(this); }