Merge pull request #409 from Alkarex/patch-1
[mono.git] / mcs / class / System.Threading.Tasks.Dataflow / System.Threading.Tasks.Dataflow / ITargetBlock.cs
index addaa3fbb4e9e542ce5abc308b3c2dfb6293a04a..a64569e1bbeed0b7c1365d771a8825b7d884374c 100644 (file)
@@ -1,6 +1,7 @@
 // ITargetBlock.cs
 //
 // Copyright (c) 2011 Jérémie "garuma" Laval
+// Copyright (c) 2012 Petr Onderka
 //
 // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to deal
 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
-//
-//
-
 
-using System;
-using System.Threading.Tasks;
-
-namespace System.Threading.Tasks.Dataflow
-{
-       public interface ITargetBlock<TInput> : IDataflowBlock
-       {
-               DataflowMessageStatus OfferMessage (DataflowMessageHeader messageHeader,
-                                                   TInput messageValue,
-                                                   ISourceBlock<TInput> source,
-                                                   bool consumeToAccept);
+namespace System.Threading.Tasks.Dataflow {
+       public interface ITargetBlock<in TInput> : IDataflowBlock {
+               DataflowMessageStatus OfferMessage (
+                       DataflowMessageHeader messageHeader, TInput messageValue,
+                       ISourceBlock<TInput> source, bool consumeToAccept);
        }
-}
-
+}
\ No newline at end of file