1
0
mirror of synced 2024-12-27 11:33:09 +01:00
Tapeti/Tapeti.Transient/ConfigExtensions.cs
Mark van Renswoude 6c32665c8a [ci skip] Refactored how consume result is handled
Reimplemented the exception strategy and logging
Much XML documentation, such wow
2019-08-14 12:20:53 +02:00

24 lines
808 B
C#

using System;
using Tapeti.Config;
namespace Tapeti.Transient
{
/// <summary>
/// ITapetiConfigBuilder 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;
}
}
}