Mercurial > pub > ImplabNet
view Implab/Messaging/IProducer.cs @ 266:254d1f255d87 v3
Добавлена метка v3.0.10 для набора изменений 74e048cbaac8
author | cin |
---|---|
date | Mon, 16 Apr 2018 19:45:18 +0300 |
parents | 7c7e9ad6fe4a |
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); } }