comparison Implab/Messaging/IProducer.cs @ 251:7c7e9ad6fe4a v3

Prerelease version of RunnableComponent Added draft messaging interfaces Added more more helpers to Xml/SerializationHelpers
author cin
date Sun, 11 Feb 2018 00:49:51 +0300
parents 9f63dade3a40
children
comparison
equal deleted inserted replaced
250:9f63dade3a40 251:7c7e9ad6fe4a
2 using System.Threading; 2 using System.Threading;
3 using System.Threading.Tasks; 3 using System.Threading.Tasks;
4 4
5 namespace Implab.Messaging { 5 namespace Implab.Messaging {
6 public interface IProducer<T> { 6 public interface IProducer<T> {
7 void PostMessage(T message, CancellationToken ct);
8
7 Task PostMessageAsync(T message, CancellationToken ct); 9 Task PostMessageAsync(T message, CancellationToken ct);
10
11 void PostMessages(IEnumerable<T> messages, CancellationToken ct);
8 12
9 Task PostMessagesAsync(IEnumerable<T> messages, CancellationToken ct); 13 Task PostMessagesAsync(IEnumerable<T> messages, CancellationToken ct);
10 } 14 }
11 } 15 }