1
0
mirror of synced 2024-11-05 02:59:16 +00:00
Tapeti/Tapeti.Transient/ConfigExtentions.cs

13 lines
374 B
C#
Raw Normal View History

using System;
namespace Tapeti.Transient
{
public static class ConfigExtensions
{
public static TapetiConfig WithTransient(this TapetiConfig config, TimeSpan defaultTimeout, string dynamicQueuePrefix = "transient")
{
config.Use(new TransientMiddleware(defaultTimeout, dynamicQueuePrefix));
return config;
}
}
}