server-master/srcs/PhoenixLib.Messaging/IMessagePublisher.cs
2026-02-10 18:21:30 +01:00

17 lines
No EOL
456 B
C#

using System.Threading;
using System.Threading.Tasks;
namespace PhoenixLib.ServiceBus
{
public interface IMessagePublisher<in T>
where T : IMessage
{
/// <summary>
/// Publishes the given event
/// </summary>
/// <param name="notification"></param>
/// <param name="token"></param>
/// <returns></returns>
Task PublishAsync(T notification, CancellationToken token = default);
}
}