Example #1
0
        public ResponseHeader SendAndParseHeader(ISolrCommand cmd)
        {
            var r   = Send(cmd);
            var xml = XDocument.Parse(r);

            return(headerParser.Parse(xml));
        }
        /// <summary>
        /// Sends a command and parses the ReplicationResponse.
        /// </summary>
        /// <param name="cmd">The CMD.</param>
        /// <returns></returns>
        public ReplicationIndexVersionResponse SendAndParseIndexVersion(ISolrCommand cmd)
        {
            var r   = Send(cmd);
            var xml = XDocument.Parse(r);

            return(indexversionParser.Parse(xml));
        }
        /// <summary>
        /// Sends a command and parses the ReplicationResponse.
        /// </summary>
        /// <param name="cmd">The CMD.</param>
        /// <returns></returns>
        public ReplicationStatusResponse SendAndParseStatus(ISolrCommand cmd)
        {
            var r   = Send(cmd);
            var xml = XDocument.Parse(r);

            return(statusParser.Parse(xml));
        }
        /// <summary>
        /// Sends a command and parses the ReplicationResponse.
        /// </summary>
        /// <param name="cmd">The CMD.</param>
        /// <returns></returns>
        public ReplicationDetailsResponse SendAndParseDetails(ISolrCommand cmd)
        {
            var r   = Send(cmd);
            var xml = XDocument.Parse(r);

            return(detailsParser.Parse(xml));
        }
Example #5
0
        public ExtractResponse SendAndParseExtract(ISolrCommand cmd)
        {
            var r   = Send(cmd);
            var xml = XDocument.Parse(r);

            return(extractResponseParser.Parse(xml));
        }
Example #6
0
        public async Task <ResponseHeader> SendAndParseHeaderAsync(ISolrCommand cmd)
        {
            var r = await SendAsync(cmd);

            var xml = XDocument.Parse(r);

            return(headerParser.Parse(xml));
        }
Example #7
0
        /// <inheritdoc />
        public async Task <ExtractResponse> SendAndParseExtractAsync(ISolrCommand cmd)
        {
            var r = await SendAsync(cmd);

            var xml = XDocument.Parse(r);

            return(extractResponseParser.Parse(xml));
        }
Example #8
0
 public Task <ResponseHeader> SendAndParseHeaderAsync(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Example #9
0
 public Task <string> SendAsync(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Example #10
0
 public ExtractResponse SendAndParseExtract(ISolrCommand cmd)
 {
     return(PerformBasicOperation(operations => operations.SendAndParseExtract(cmd)));
 }
 public string Send(ISolrCommand cmd)
 {
     SetLastOperation();
     return(null);
 }
 public Task <ResponseHeader> SendAndParseHeaderAsync(ISolrCommand cmd)
 {
     SetLastOperation();
     return(Task.FromResult <ResponseHeader>(null));
 }
Example #13
0
 /// <summary>
 /// Sends a command and parses the ReplicationResponse.
 /// </summary>
 /// <param name="cmd">The CMD.</param>
 /// <returns></returns>
 public ReplicationDetailsResponse SendAndParseDetails(ISolrCommand cmd)
 {
     var r = Send(cmd);
     var xml = XDocument.Parse(r);
     return detailsParser.Parse(xml);
 }
Example #14
0
 /// <summary>
 /// Sends a command and parses the ReplicationResponse.
 /// </summary>
 /// <param name="cmd">The CMD.</param>
 /// <returns></returns>
 public ReplicationStatusResponse SendAndParseStatus(ISolrCommand cmd)
 {
     var r = Send(cmd);
     var xml = XDocument.Parse(r);
     return statusParser.Parse(xml);
 }
Example #15
0
 public ResponseHeader SendAndParseHeader(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Example #16
0
 public Task <ExtractResponse> SendAndParseExtractAsync(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Example #17
0
 public Task <string> SendAsync(ISolrCommand cmd)
 {
     return(cmd.ExecuteAsync(connection));
 }
        public async Task <ResponseHeader> SendAndParseHeader(ISolrCommand cmd)
        {
            var jsonResponse = await Send(cmd);

            return(JsonConvert.DeserializeObject <ResponseHeader>(jsonResponse));
        }
 public async Task <string> Send(ISolrCommand cmd)
 {
     return(await cmd.Execute(connection));
 }
Example #20
0
 /// <summary>
 /// Sends a command and parses the ResponseHeader.
 /// </summary>
 /// <param name="cmd">The CMD.</param>
 /// <returns></returns>
 public ResponseHeader SendAndParseHeader(ISolrCommand cmd) {
     var r = Send(cmd);
     var xml = XDocument.Parse(r);
     return headerParser.Parse(xml);
 }
 public Task <ExtractResponse> SendAndParseExtractAsync(ISolrCommand cmd)
 {
     SetLastOperation();
     return(Task.FromResult <ExtractResponse>(null));
 }
Example #22
0
 public string Send(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Example #23
0
 public Task <string> SendAsync(ISolrCommand cmd)
 => PerformBasicOperation(operations => operations.SendAsync(cmd));
Example #24
0
 public ExtractResponse SendAndParseExtract(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Example #25
0
 public Task <ResponseHeader> SendAndParseHeaderAsync(ISolrCommand cmd)
 => PerformBasicOperation(operations => operations.SendAndParseHeaderAsync(cmd));
Example #26
0
 /// <summary>
 /// Sends a command and parses the ReplicationResponse.
 /// </summary>
 /// <param name="cmd">The CMD.</param>
 /// <returns></returns>
 public ReplicationIndexVersionResponse SendAndParseIndexVersion(ISolrCommand cmd)
 {
     var r = Send(cmd);
     var xml = XDocument.Parse(r);
     return indexversionParser.Parse(xml);
 }
 public ExtractResponse SendAndParseExtract(ISolrCommand cmd)
 {
     SetLastOperation();
     return(null);
 }
Example #28
0
 /// <summary>
 /// Sends the specified Command to Solr.
 /// </summary>
 /// <param name="command">The Command to send.</param>
 /// <returns></returns>
 public string Send(ISolrCommand command) {
     return command.Execute(connection);
 }
 public Task <string> SendAsync(ISolrCommand cmd)
 {
     SetLastOperation();
     return(Task.FromResult <string>(null));
 }
Example #30
0
 public Task <ExtractResponse> SendAndParseExtractAsync(ISolrCommand cmd)
 => PerformBasicOperation(operations => operations.SendAndParseExtractAsync(cmd));
 public ResponseHeader SendAndParseHeader(ISolrCommand cmd)
 {
     SetLastOperation();
     return(null);
 }
Example #32
0
 public string Send(ISolrCommand cmd)
 {
     return(PerformBasicOperation(operations => operations.Send(cmd)));
 }
Example #33
0
 public ResponseHeader SendAndParseHeader(ISolrCommand cmd)
 {
     return(PerformBasicOperation(operations => operations.SendAndParseHeader(cmd)));
 }
 /// <summary>
 /// Sends the specified Command to Solr.
 /// </summary>
 /// <param name="command">The Command to send.</param>
 /// <returns></returns>
 public string Send(ISolrCommand command)
 {
     return(command.Execute(connection));
 }
Example #35
0
 public ResponseHeader SendAndParseHeader(ISolrCommand cmd)
 {
     return(((LowLevelSolr)this).SendAndParseHeader(cmd));
 }