public string Execute(ISolrConnection connection) { string json = GetAtomicUpdateJson(); var bytes = Encoding.UTF8.GetBytes(json); using (var content = new MemoryStream(bytes)) return(connection.PostStream("/update", "text/json; charset=utf-8", content, GetParamsAsKvp())); }
public string PostStream(string relativeUrl, string contentType, Stream content, IEnumerable <KeyValuePair <string, string> > parameters) { Console.WriteLine("Posting Binary"); return(conn.PostStream(relativeUrl, contentType, content, parameters)); }
public string Execute(ISolrConnection connection) { var queryParameters = ConvertToQueryParameters(); return(connection.PostStream("/update/extract", parameters.StreamType, parameters.Content, queryParameters)); }
public string PostStream(string relativeUrl, string contentType, System.IO.Stream content, IEnumerable <KeyValuePair <string, string> > getParameters) { return(conn.PostStream(relativeUrl, contentType, content, getParameters)); }
public string Execute(ISolrConnection connection) { var queryParameters = ConvertToQueryParameters(); return connection.PostStream("/update/extract", parameters.StreamType, parameters.Content, queryParameters); }
public string PostStream(string relativeUrl, string contentType, Stream content, IEnumerable <KeyValuePair <string, string> > getParameters) { logger.DebugFormat("POSTing to '{0}'", relativeUrl); return(connection.PostStream(relativeUrl, contentType, content, getParameters)); }
public string PostStream(string relativeUrl, string contentType, Stream content, IEnumerable <KeyValuePair <string, string> > getParameters) { // TODO add other args Log($"{nameof(relativeUrl)}={relativeUrl}, {nameof(contentType)}={contentType}"); return(_connection.PostStream(relativeUrl, contentType, content, getParameters)); }