aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core/Internal/CompletionRegistry.cs
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2017-05-26 14:44:34 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2017-05-26 14:44:34 -0700
commitc400cc5f8dcff7ff70a7030f085ebdd5c9359fa5 (patch)
treea314a9c5e551b3ec44f7696a571e03a9a5232653 /src/csharp/Grpc.Core/Internal/CompletionRegistry.cs
parent254ab4c085ae39c0935b06edccfffdaeaeda94a1 (diff)
address comments
Diffstat (limited to 'src/csharp/Grpc.Core/Internal/CompletionRegistry.cs')
-rw-r--r--src/csharp/Grpc.Core/Internal/CompletionRegistry.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Core/Internal/CompletionRegistry.cs b/src/csharp/Grpc.Core/Internal/CompletionRegistry.cs
index fc0ff72e6a..075286d33e 100644
--- a/src/csharp/Grpc.Core/Internal/CompletionRegistry.cs
+++ b/src/csharp/Grpc.Core/Internal/CompletionRegistry.cs
@@ -52,7 +52,7 @@ namespace Grpc.Core.Internal
readonly GrpcEnvironment environment;
readonly ConcurrentDictionary<IntPtr, OpCompletionDelegate> dict = new ConcurrentDictionary<IntPtr, OpCompletionDelegate>(new IntPtrComparer());
- IntPtr lastRegisteredKey;
+ IntPtr lastRegisteredKey; // only for testing
public CompletionRegistry(GrpcEnvironment environment)
{
@@ -86,6 +86,9 @@ namespace Grpc.Core.Internal
return value;
}
+ /// <summary>
+ /// For testing purposes only.
+ /// </summary>
public IntPtr LastRegisteredKey
{
get { return this.lastRegisteredKey; }