1
0
mirror of synced 2024-11-05 02:59:16 +00:00
Tapeti/Tapeti.Transient/ITransientPublisher.cs
Mark van Renswoude f8fca5879c [ci skip] Major refactoring for 2.0
- Compiles, but that's about it. Plenty of ToDo's left before it will run. Beware, ye who enter here.
- Cleanup of the internals, with the aim to keep the interface to application code compatible
- Added the ability to declare durable queues on startup and update the bindings
- Possibly fixed an issue with publish timeouts being logged after a reconnect
2019-08-13 20:30:04 +02:00

18 lines
648 B
C#

using System.Threading.Tasks;
namespace Tapeti.Transient
{
/// <summary>
/// Provides a publisher which can send request messages, and await the response on a dynamic queue.
/// </summary>
public interface ITransientPublisher
{
/// <summary>
/// Sends a request and waits for the response with the timeout specified in the WithTransient config call.
/// </summary>
/// <param name="request"></param>
/// <typeparam name="TRequest"></typeparam>
/// <typeparam name="TResponse"></typeparam>
Task<TResponse> RequestResponse<TRequest, TResponse>(TRequest request);
}
}