lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [8/9] lucenenet git commit: Lucene.Net.Support.Search.ReferenceManagerExtensions: Renamed AcquireContext() to GetContext()
Date Thu, 13 Jul 2017 18:36:03 GMT
Lucene.Net.Support.Search.ReferenceManagerExtensions: Renamed AcquireContext() to GetContext()


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

Branch: refs/heads/master
Commit: 2fedc5747838f3aa66e3e1b6e60f2600e0a4f46c
Parents: 6f51ab5
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Jul 14 01:21:11 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Jul 14 01:21:11 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net/Support/Search/ReferenceManagerExtensions.cs | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2fedc574/src/Lucene.Net/Support/Search/ReferenceManagerExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/Search/ReferenceManagerExtensions.cs b/src/Lucene.Net/Support/Search/ReferenceManagerExtensions.cs
index 2629398..b8bde10 100644
--- a/src/Lucene.Net/Support/Search/ReferenceManagerExtensions.cs
+++ b/src/Lucene.Net/Support/Search/ReferenceManagerExtensions.cs
@@ -28,7 +28,7 @@
         /// <para/>
         /// <code>
         /// var searcherManager = new SearcherManager(indexWriter, true, null);
-        /// using (var context = searcherManager.AcquireContext())
+        /// using (var context = searcherManager.GetContext())
         /// {
         ///     IndexSearcher searcher = context.Reference;
         ///     
@@ -38,8 +38,10 @@
         /// </summary>
         /// <typeparam name="T">The reference type</typeparam>
         /// <param name="referenceManager">this <see cref="ReferenceManager{G}"/></param>
-        /// <returns>A <see cref="ReferenceContext{T}"/> instance that holds
the <see cref="ReferenceContext{T}.Reference"/> and ensures it is released properly
when <see cref="ReferenceContext{T}.Dispose()"/> is called.</returns>
-        public static ReferenceContext<T> AcquireContext<T>(this ReferenceManager<T>
referenceManager) where T : class
+        /// <returns>A <see cref="ReferenceContext{T}"/> instance that holds
the 
+        /// <see cref="ReferenceContext{T}.Reference"/> and ensures it is released
properly 
+        /// when <see cref="ReferenceContext{T}.Dispose()"/> is called.</returns>
+        public static ReferenceContext<T> GetContext<T>(this ReferenceManager<T>
referenceManager) where T : class
         {
             return new ReferenceContext<T>(referenceManager);
         }


Mime
View raw message