// 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