Mercurial > pub > ImplabNet
view 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 |
line wrap: on
line source
using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Implab.Messaging { public interface IProducer<T> { void PostMessage(T message, CancellationToken ct); Task PostMessageAsync(T message, CancellationToken ct); void PostMessages(IEnumerable<T> messages, CancellationToken ct); Task PostMessagesAsync(IEnumerable<T> messages, CancellationToken ct); } }