diff options
author | Stephen Toub <stoub@microsoft.com> | 2017-10-04 05:14:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-04 05:14:06 +0300 |
commit | 7017c3cd5c64f020acc0089000696d9fba2571c5 (patch) | |
tree | 06323225e40b18095a82604313d3a49c4b91d74a | |
parent | d1223d2c92e1de67cebfa5c8668b67e6d6265d8c (diff) | |
parent | aa88b526a550f2dd5c20bd45915556d8b3f8d051 (diff) |
Merge pull request #4654 from stephentoub/ctr_token
Make CancellationTokenRegistration.Token public
-rw-r--r-- | src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs b/src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs index 035e2f081..c5e86be69 100644 --- a/src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs +++ b/src/System.Private.CoreLib/src/System/Threading/CancellationTokenRegistration.cs @@ -35,7 +35,7 @@ namespace System.Threading /// registration isn't associated with a token (such as after the registration has been disposed), /// this will return a default token. /// </summary> - internal CancellationToken Token => m_callbackInfo?.CancellationTokenSource.Token ?? default(CancellationToken); + public CancellationToken Token => m_callbackInfo?.CancellationTokenSource.Token ?? default(CancellationToken); /// <summary> /// Attempts to deregister the item. If it's already being run, this may fail. |