Permalink
Browse files

Remove #if NET_4_0 and add MonoTODO attribute

  • Loading branch information...
1 parent 31bb3e1 commit dbcf0d4b7ff9ccb220e28e3f6c1ae318fc6dc522 @garuma committed Aug 11, 2011
Showing with 4 additions and 52 deletions.
  1. +2 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/ActionBlock.cs
  2. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/BatchBlock.cs
  3. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/BroadcastBlock.cs
  4. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/BufferBlock.cs
  5. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/ChooserBlock.cs
  6. +2 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/DataflowBlock.cs
  7. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/JoinBlock.cs
  8. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/JoinBlock`3.cs
  9. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/ObservableDataflowBlock.cs
  10. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/ObserverDataflowBlock.cs
  11. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/PropagatorWrapperBlock.cs
  12. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/ReceiveBlock.cs
  13. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/TransformBlock.cs
  14. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/TransformManyBlock.cs
  15. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/System.Threading.Tasks.Dataflow/WriteOnceBlock.cs
  16. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/ActionBlockTest.cs
  17. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/BatchBlockTest.cs
  18. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/BroadcastBlockTest.cs
  19. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/BufferBlockTest.cs
  20. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/CompletionTest.cs
  21. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/DataflowBlockTest.cs
  22. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/JoinBlockTest.cs
  23. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/JoinBlock`3Test.cs
  24. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/TransformBlockTest.cs
  25. +0 −2 ...ss/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/TransformManyBlockTest.cs
  26. +0 −2 mcs/class/System.Threading.Tasks.Dataflow/Test/System.Threading.Tasks.Dataflow/WriteOnceBlockTest.cs
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading;
@@ -59,11 +58,13 @@ public ActionBlock (Action<TInput> action, ExecutionDataflowBlockOptions dataflo
this.messageBox = new ExecutingMessageBox<TInput> (messageQueue, compHelper, () => true, ProcessQueue, dataflowBlockOptions);
}
+ [MonoTODO]
public ActionBlock (Func<TInput, Task> action) : this (action, defaultOptions)
{
throw new NotImplementedException ();
}
+ [MonoTODO]
public ActionBlock (Func<TInput, Task> action, ExecutionDataflowBlockOptions dataflowBlockOptions)
{
throw new NotImplementedException ();
@@ -108,4 +109,3 @@ public void Fault (Exception ex)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -170,4 +169,3 @@ public void Fault (Exception ex)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -137,4 +136,3 @@ public void Fault (Exception ex)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -142,4 +141,3 @@ public void Fault (Exception ex)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -112,4 +111,3 @@ void MessageArrived<TMessage> (int index, Action<TMessage> action, TMessage valu
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -129,6 +128,7 @@ public static IDisposable LinkTo<TOutput> (this ISourceBlock<TOutput> source, IT
return source.LinkTo (target, false);
}
+ [MonoTODO]
public static Task<bool> OutputAvailableAsync<TOutput> (this ISourceBlock<TOutput> source)
{
throw new NotImplementedException ();
@@ -211,11 +211,11 @@ public static bool TryReceive<TOutput> (this IReceivableSourceBlock<TOutput> sou
return source.TryReceive (null, out item);
}
+ [MonoTODO]
public static Task<bool> SendAsync<TInput> (this ITargetBlock<TInput> target, TInput item)
{
throw new NotImplementedException ();
}
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -210,4 +209,3 @@ void IDataflowBlock.Fault (Exception e)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -232,4 +231,3 @@ void IDataflowBlock.Fault (Exception e)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -93,4 +92,3 @@ public IDisposable Subscribe (IObserver<TSource> observer)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -57,4 +56,3 @@ public void OnNext (TInput value)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -93,4 +92,3 @@ public void Fault (Exception ex)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -115,4 +114,3 @@ public void Fault (Exception ex)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -155,4 +154,3 @@ public void Fault (Exception ex)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -155,4 +154,3 @@ public void Fault (Exception ex)
}
}
-#endif
@@ -22,7 +22,6 @@
//
//
-#if NET_4_0 || MOBILE
using System;
using System.Threading.Tasks;
@@ -167,4 +166,3 @@ public void Fault (Exception ex)
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// ActionBlockTest.cs
//
@@ -69,4 +68,3 @@ public void CompleteTest ()
}
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// BatchBlockTest.cs
//
@@ -129,4 +128,3 @@ public void LateTriggerBatchKeepCountTest ()
}
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// BroadcastBlockTest.cs
//
@@ -84,4 +83,3 @@ public void CloningTest ()
}
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// BufferBlockTest.cs
//
@@ -94,4 +93,3 @@ public void MultipleBindingTest ()
}
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// CompletionTest.cs
//
@@ -102,4 +101,3 @@ public void WithElementsStillLingeringButFaulted ()
}
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// DataflowBlockTest.cs
//
@@ -142,4 +141,3 @@ public void AsyncReceiveTestCanceled ()
}
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// JoinBlockTest.cs
//
@@ -61,4 +60,3 @@ public void BasicUsageTest ()
}
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// JoinBlockTest.cs
//
@@ -67,4 +66,3 @@ public void BasicUsageTest ()
}
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// TransformBlockTest.cs
//
@@ -72,4 +71,3 @@ public void DeferredUsageTest ()
}
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// TransformManyBlockTest.cs
//
@@ -76,4 +75,3 @@ public void DeferredUsageTest ()
}
}
}
-#endif
@@ -1,4 +1,3 @@
-#if NET_4_0
//
// WriteOnceBlockTest.cs
//
@@ -130,4 +129,3 @@ public void TryReceiveBehavior ()
}
}
}
-#endif

0 comments on commit dbcf0d4

Please sign in to comment.