using System;
using Tapeti.Config;
// ReSharper disable UnusedMember.Global
namespace Tapeti.Transient
{
///
/// ITapetiConfigBuilder extension to register Tapeti.Transient
///
public static class ConfigExtensions
{
///
/// Registers the transient publisher and required middleware
///
///
///
///
///
public static ITapetiConfigBuilder WithTransient(this ITapetiConfigBuilder config, TimeSpan defaultTimeout, string dynamicQueuePrefix = "transient")
{
config.Use(new TransientExtension(defaultTimeout, dynamicQueuePrefix));
return config;
}
}
}