You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/08/18 08:05:07 UTC

[20/20] lucenenet git commit: Lucene.Net.Replicator: Moved Http/Abstractions to Support folder

Lucene.Net.Replicator: Moved Http/Abstractions to Support folder


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/14055123
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/14055123
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/14055123

Branch: refs/heads/replicator
Commit: 14055123039832ffe010a5c8b697a3c698c443c3
Parents: f308f83
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Thu Aug 17 18:34:43 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Thu Aug 17 18:34:43 2017 +0700

----------------------------------------------------------------------
 .../Http/Abstractions/IReplicationRequest.cs    | 44 -------------------
 .../Http/Abstractions/IReplicationResponse.cs   | 46 --------------------
 .../Lucene.Net.Replicator.csproj                |  4 +-
 .../Http/Abstractions/IReplicationRequest.cs    | 44 +++++++++++++++++++
 .../Http/Abstractions/IReplicationResponse.cs   | 46 ++++++++++++++++++++
 5 files changed, 92 insertions(+), 92 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/14055123/src/Lucene.Net.Replicator/Http/Abstractions/IReplicationRequest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Replicator/Http/Abstractions/IReplicationRequest.cs b/src/Lucene.Net.Replicator/Http/Abstractions/IReplicationRequest.cs
deleted file mode 100644
index e1c3de5..0000000
--- a/src/Lucene.Net.Replicator/Http/Abstractions/IReplicationRequest.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-namespace Lucene.Net.Replicator.Http.Abstractions
-{
-    /*
-	 * Licensed to the Apache Software Foundation (ASF) under one or more
-	 * contributor license agreements.  See the NOTICE file distributed with
-	 * this work for additional information regarding copyright ownership.
-	 * The ASF licenses this file to You under the Apache License, Version 2.0
-	 * (the "License"); you may not use this file except in compliance with
-	 * the License.  You may obtain a copy of the License at
-	 *
-	 *     http://www.apache.org/licenses/LICENSE-2.0
-	 *
-	 * Unless required by applicable law or agreed to in writing, software
-	 * distributed under the License is distributed on an "AS IS" BASIS,
-	 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-	 * See the License for the specific language governing permissions and
-	 * limitations under the License.
-	 */
-
-    /// <summary>
-    /// Abstraction for remote replication requests, allows easy integration into any hosting frameworks.
-    /// </summary>
-    /// <remarks>
-    /// .NET Specific Abstraction  
-    /// </remarks>
-    //Note: LUCENENET specific
-    public interface IReplicationRequest
-    {
-        /// <summary>
-        /// Provides the requested path which mapps to a replication operation.
-        /// </summary>
-        string Path { get; }
-
-        /// <summary>
-        /// Returns the requested query parameter or null if not present.
-        /// </summary>
-        /// <remarks>
-        ///  May though execeptions if the same parameter is provided multiple times, consult the documentation for the specific implementation.
-        /// </remarks>
-        /// <param name="name">the name of the requested parameter</param>
-        /// <returns>the value of the requested parameter or null if not present</returns>
-        string QueryParam(string name);
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/14055123/src/Lucene.Net.Replicator/Http/Abstractions/IReplicationResponse.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Replicator/Http/Abstractions/IReplicationResponse.cs b/src/Lucene.Net.Replicator/Http/Abstractions/IReplicationResponse.cs
deleted file mode 100644
index 1865dd4..0000000
--- a/src/Lucene.Net.Replicator/Http/Abstractions/IReplicationResponse.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System.IO;
-
-namespace Lucene.Net.Replicator.Http.Abstractions
-{
-    /*
-	 * Licensed to the Apache Software Foundation (ASF) under one or more
-	 * contributor license agreements.  See the NOTICE file distributed with
-	 * this work for additional information regarding copyright ownership.
-	 * The ASF licenses this file to You under the Apache License, Version 2.0
-	 * (the "License"); you may not use this file except in compliance with
-	 * the License.  You may obtain a copy of the License at
-	 *
-	 *     http://www.apache.org/licenses/LICENSE-2.0
-	 *
-	 * Unless required by applicable law or agreed to in writing, software
-	 * distributed under the License is distributed on an "AS IS" BASIS,
-	 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-	 * See the License for the specific language governing permissions and
-	 * limitations under the License.
-	 */
-
-    /// <summary>
-    /// Abstraction for remote replication response, allows easy integration into any hosting frameworks.
-    /// </summary>
-    /// <remarks>
-    /// .NET Specific Abstraction  
-    /// </remarks>
-    //Note: LUCENENET specific
-    public interface IReplicationResponse
-    {
-        /// <summary>
-        /// Gets or sets the http status code of the response.
-        /// </summary>
-        int StatusCode { get; set; }
-
-        /// <summary>
-        /// The response content.
-        /// </summary>
-        Stream Body { get; }
-
-        /// <summary>
-        /// Flushes the reponse to the underlying response stream.
-        /// </summary>
-        void Flush();
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/14055123/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj b/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj
index 7ea6243..ac73af4 100644
--- a/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj
+++ b/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj
@@ -65,8 +65,8 @@
   <ItemGroup>
     <Compile Include="Http\HttpClientBase.cs" />
     <Compile Include="Http\HttpReplicator.cs" />
-    <Compile Include="Http\Abstractions\IReplicationRequest.cs" />
-    <Compile Include="Http\Abstractions\IReplicationResponse.cs" />
+    <Compile Include="Support\Http\Abstractions\IReplicationRequest.cs" />
+    <Compile Include="Support\Http\Abstractions\IReplicationResponse.cs" />
     <Compile Include="Http\ReplicationService.cs" />
     <Compile Include="IndexAndTaxonomyReplicationHandler.cs" />
     <Compile Include="IndexAndTaxonomyRevision.cs" />

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/14055123/src/Lucene.Net.Replicator/Support/Http/Abstractions/IReplicationRequest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Replicator/Support/Http/Abstractions/IReplicationRequest.cs b/src/Lucene.Net.Replicator/Support/Http/Abstractions/IReplicationRequest.cs
new file mode 100644
index 0000000..e1c3de5
--- /dev/null
+++ b/src/Lucene.Net.Replicator/Support/Http/Abstractions/IReplicationRequest.cs
@@ -0,0 +1,44 @@
+namespace Lucene.Net.Replicator.Http.Abstractions
+{
+    /*
+	 * Licensed to the Apache Software Foundation (ASF) under one or more
+	 * contributor license agreements.  See the NOTICE file distributed with
+	 * this work for additional information regarding copyright ownership.
+	 * The ASF licenses this file to You under the Apache License, Version 2.0
+	 * (the "License"); you may not use this file except in compliance with
+	 * the License.  You may obtain a copy of the License at
+	 *
+	 *     http://www.apache.org/licenses/LICENSE-2.0
+	 *
+	 * Unless required by applicable law or agreed to in writing, software
+	 * distributed under the License is distributed on an "AS IS" BASIS,
+	 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	 * See the License for the specific language governing permissions and
+	 * limitations under the License.
+	 */
+
+    /// <summary>
+    /// Abstraction for remote replication requests, allows easy integration into any hosting frameworks.
+    /// </summary>
+    /// <remarks>
+    /// .NET Specific Abstraction  
+    /// </remarks>
+    //Note: LUCENENET specific
+    public interface IReplicationRequest
+    {
+        /// <summary>
+        /// Provides the requested path which mapps to a replication operation.
+        /// </summary>
+        string Path { get; }
+
+        /// <summary>
+        /// Returns the requested query parameter or null if not present.
+        /// </summary>
+        /// <remarks>
+        ///  May though execeptions if the same parameter is provided multiple times, consult the documentation for the specific implementation.
+        /// </remarks>
+        /// <param name="name">the name of the requested parameter</param>
+        /// <returns>the value of the requested parameter or null if not present</returns>
+        string QueryParam(string name);
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/14055123/src/Lucene.Net.Replicator/Support/Http/Abstractions/IReplicationResponse.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Replicator/Support/Http/Abstractions/IReplicationResponse.cs b/src/Lucene.Net.Replicator/Support/Http/Abstractions/IReplicationResponse.cs
new file mode 100644
index 0000000..1865dd4
--- /dev/null
+++ b/src/Lucene.Net.Replicator/Support/Http/Abstractions/IReplicationResponse.cs
@@ -0,0 +1,46 @@
+using System.IO;
+
+namespace Lucene.Net.Replicator.Http.Abstractions
+{
+    /*
+	 * Licensed to the Apache Software Foundation (ASF) under one or more
+	 * contributor license agreements.  See the NOTICE file distributed with
+	 * this work for additional information regarding copyright ownership.
+	 * The ASF licenses this file to You under the Apache License, Version 2.0
+	 * (the "License"); you may not use this file except in compliance with
+	 * the License.  You may obtain a copy of the License at
+	 *
+	 *     http://www.apache.org/licenses/LICENSE-2.0
+	 *
+	 * Unless required by applicable law or agreed to in writing, software
+	 * distributed under the License is distributed on an "AS IS" BASIS,
+	 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	 * See the License for the specific language governing permissions and
+	 * limitations under the License.
+	 */
+
+    /// <summary>
+    /// Abstraction for remote replication response, allows easy integration into any hosting frameworks.
+    /// </summary>
+    /// <remarks>
+    /// .NET Specific Abstraction  
+    /// </remarks>
+    //Note: LUCENENET specific
+    public interface IReplicationResponse
+    {
+        /// <summary>
+        /// Gets or sets the http status code of the response.
+        /// </summary>
+        int StatusCode { get; set; }
+
+        /// <summary>
+        /// The response content.
+        /// </summary>
+        Stream Body { get; }
+
+        /// <summary>
+        /// Flushes the reponse to the underlying response stream.
+        /// </summary>
+        void Flush();
+    }
+}
\ No newline at end of file