Mark van Renswoude
f8fca5879c
- 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
24 lines
800 B
C#
24 lines
800 B
C#
using System;
|
|
using Tapeti.Config;
|
|
|
|
namespace Tapeti.Transient
|
|
{
|
|
/// <summary>
|
|
/// TapetiConfig extension to register Tapeti.Transient
|
|
/// </summary>
|
|
public static class ConfigExtensions
|
|
{
|
|
/// <summary>
|
|
/// Registers the transient publisher and required middleware
|
|
/// </summary>
|
|
/// <param name="config"></param>
|
|
/// <param name="defaultTimeout"></param>
|
|
/// <param name="dynamicQueuePrefix"></param>
|
|
/// <returns></returns>
|
|
public static ITapetiConfigBuilder WithTransient(this ITapetiConfigBuilder config, TimeSpan defaultTimeout, string dynamicQueuePrefix = "transient")
|
|
{
|
|
config.Use(new TransientExtension(defaultTimeout, dynamicQueuePrefix));
|
|
return config;
|
|
}
|
|
}
|
|
} |