using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Implab.Messaging { public interface IProducer { void PostMessage(T message, CancellationToken ct); Task PostMessageAsync(T message, CancellationToken ct); void PostMessages(IEnumerable messages, CancellationToken ct); Task PostMessagesAsync(IEnumerable messages, CancellationToken ct); } }