public Repository(List <Uri> uri, string indexName, INestClient client, bool rolling, string rollingFormat) { this._uri = uri; this._client = client; this._indexName = indexName; this._rolling = rolling; this._rollingFormat = rollingFormat; }
public static IRepository Create(string connectionString, string indexName, INestClient client, bool rolling, string rollingFormat) { var nodeArray = connectionString.Split(','); var uris = new List <Uri>(); foreach (var nodeName in nodeArray) { if (!string.IsNullOrEmpty(nodeName)) { uris.Add(new Uri(nodeName)); } } return(new Repository(uris, indexName, client, rolling, rollingFormat)); }