Add back internal FromCancellation methods
authorJan Kotas <jkotas@microsoft.com>
Mon, 25 Apr 2016 14:29:52 +0000 (07:29 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 25 Apr 2016 14:29:52 +0000 (07:29 -0700)
System.Runtime.WindowsRuntime implementation depends on them

[tfs-changeset: 1598965]

src/mscorlib/model.xml
src/mscorlib/src/System/Threading/Tasks/Task.cs

index 85727ce..d20c3c4 100644 (file)
       <Member Name="FromException&lt;TResult&gt;(System.Exception)" />
       <Member Name="FromCanceled(System.Threading.CancellationToken)" />
       <Member Name="FromCanceled&lt;TResult&gt;(System.Threading.CancellationToken)" />
+      <Member Status="ApiFxInternal" Name="FromCancellation(System.Threading.CancellationToken)" />
+      <Member Status="ApiFxInternal" Name="FromCancellation&lt;TResult&gt;(System.Threading.CancellationToken)" />
       <Member Name="Run(System.Action)" />
       <Member Name="Run(System.Action,System.Threading.CancellationToken)" />
       <Member Name="Run&lt;TResult&gt;(System.Func&lt;TResult&gt;)" />
index a0fa7e0..1a84f37 100644 (file)
@@ -5584,7 +5584,6 @@ namespace System.Threading.Tasks
             return task;
         }
         
-#if !FEATURE_CORECLR 
         /// <summary>Creates a <see cref="Task"/> that's completed due to cancellation with the specified token.</summary>
         /// <param name="cancellationToken">The token with which to complete the task.</param>
         /// <returns>The canceled task.</returns>
@@ -5603,7 +5602,6 @@ namespace System.Threading.Tasks
         {
             return FromCanceled<TResult>(cancellationToken);
         }
-#endif
         
         #endregion