1612 {
1615 CancellationTokenSource
cts = CancellationTokenSource.CreateLinkedTokenSource(
dataflowBlockOptions.CancellationToken, CancellationToken.None);
1620 if (flag)
1621 {
1623 }
1626 {
1628 int num = -1;
1630 {
1631 switch (
task.Status)
1632 {
1633 case TaskStatus.Faulted:
1634 Common.AddException(ref list, task.Exception, unwrapInnerExceptions: true);
1635 break;
1636 case TaskStatus.RanToCompletion:
1637 {
1638 int result2 = task.Result;
1639 if (result2 >= 0)
1640 {
1641 num = result2;
1642 }
1643 break;
1644 }
1645 }
1646 }
1648 {
1649 result.TrySetException(
list);
1650 }
1651 else if (num >= 0)
1652 {
1653 result.TrySetResult(num);
1654 }
1655 else
1656 {
1657 result.TrySetCanceled();
1658 }
1661 return result.Task;
1662 }
static TaskContinuationOptions GetContinuationOptions(TaskContinuationOptions toInclude=TaskContinuationOptions.None)