Mark van Renswoude
bcdb376256
Added test for publish overflows Removed support for Unity Container Changed third party package references to ranges Fixed XML documentation
26 lines
850 B
C#
26 lines
850 B
C#
using System;
|
|
using Tapeti.Config;
|
|
|
|
// ReSharper disable UnusedMember.Global
|
|
|
|
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;
|
|
}
|
|
}
|
|
} |