Change CancellationTokenRegistration.Unregister visibility from internal to public...
authorLuqun Lou <luqunl@users.noreply.github.com>
Fri, 29 Jun 2018 17:59:07 +0000 (10:59 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Jun 2018 17:59:07 +0000 (10:59 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/ef85b4e560bd2d10ea342ca86a5947e0e0284fcc

src/coreclr/src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs

index 67ec05c..b02eba5 100644 (file)
@@ -47,7 +47,7 @@ namespace System.Threading
         /// Disposes of the registration and unregisters the target callback from the associated 
         /// <see cref="T:System.Threading.CancellationToken">CancellationToken</see>.
         /// </summary>
-        internal bool Unregister() // corefx currently has an InternalsVisibleTo dependency on this
+        public bool Unregister() // TODO dotnet/corefx#14903: This is "public" for corefx usage, but it's not yet in the refs or approved public API.
         {
             CancellationTokenSource.CallbackNode node = _node;
             return node != null && node.Partition.Unregister(_id, node);