Esempio n. 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));
        }
Esempio n. 5
0
        public ExtractResponse SendAndParseExtract(ISolrCommand cmd)
        {
            var r   = Send(cmd);
            var xml = XDocument.Parse(r);

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

            var xml = XDocument.Parse(r);

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

            var xml = XDocument.Parse(r);

            return(extractResponseParser.Parse(xml));
        }
Esempio n. 8
0
 public Task <ResponseHeader> SendAndParseHeaderAsync(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Esempio n. 9
0
 public Task <string> SendAsync(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Esempio n. 10
0
 public ExtractResponse SendAndParseExtract(ISolrCommand cmd)
 {
     return(PerformBasicOperation(operations => operations.SendAndParseExtract(cmd)));
 }
Esempio n. 11
0
 public string Send(ISolrCommand cmd)
 {
     SetLastOperation();
     return(null);
 }
Esempio n. 12
0
 public Task <ResponseHeader> SendAndParseHeaderAsync(ISolrCommand cmd)
 {
     SetLastOperation();
     return(Task.FromResult <ResponseHeader>(null));
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 15
0
 public ResponseHeader SendAndParseHeader(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Esempio n. 16
0
 public Task <ExtractResponse> SendAndParseExtractAsync(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Esempio n. 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));
 }
Esempio n. 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);
 }
Esempio n. 21
0
 public Task <ExtractResponse> SendAndParseExtractAsync(ISolrCommand cmd)
 {
     SetLastOperation();
     return(Task.FromResult <ExtractResponse>(null));
 }
Esempio n. 22
0
 public string Send(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Esempio n. 23
0
 public Task <string> SendAsync(ISolrCommand cmd)
 => PerformBasicOperation(operations => operations.SendAsync(cmd));
Esempio n. 24
0
 public ExtractResponse SendAndParseExtract(ISolrCommand cmd)
 {
     throw new NotImplementedException();
 }
Esempio n. 25
0
 public Task <ResponseHeader> SendAndParseHeaderAsync(ISolrCommand cmd)
 => PerformBasicOperation(operations => operations.SendAndParseHeaderAsync(cmd));
Esempio n. 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);
 }
Esempio n. 27
0
 public ExtractResponse SendAndParseExtract(ISolrCommand cmd)
 {
     SetLastOperation();
     return(null);
 }
Esempio n. 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);
 }
Esempio n. 29
0
 public Task <string> SendAsync(ISolrCommand cmd)
 {
     SetLastOperation();
     return(Task.FromResult <string>(null));
 }
Esempio n. 30
0
 public Task <ExtractResponse> SendAndParseExtractAsync(ISolrCommand cmd)
 => PerformBasicOperation(operations => operations.SendAndParseExtractAsync(cmd));
Esempio n. 31
0
 public ResponseHeader SendAndParseHeader(ISolrCommand cmd)
 {
     SetLastOperation();
     return(null);
 }
Esempio n. 32
0
 public string Send(ISolrCommand cmd)
 {
     return(PerformBasicOperation(operations => operations.Send(cmd)));
 }
Esempio n. 33
0
 public ResponseHeader SendAndParseHeader(ISolrCommand cmd)
 {
     return(PerformBasicOperation(operations => operations.SendAndParseHeader(cmd)));
 }
Esempio n. 34
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));
 }
Esempio n. 35
0
 public ResponseHeader SendAndParseHeader(ISolrCommand cmd)
 {
     return(((LowLevelSolr)this).SendAndParseHeader(cmd));
 }