Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
502 B

using System;
using System.Collections.Generic;
namespace Volo.Abp.EventBus.Distributed;
public class OutboxConfigDictionary : Dictionary<string, OutboxConfig>
{
public void Configure(Action<OutboxConfig> configAction)
{
Configure("Default", configAction);
}
public void Configure(string outboxName, Action<OutboxConfig> configAction)
{
var outboxConfig = this.GetOrAdd(outboxName, () => new OutboxConfig(outboxName));
configAction(outboxConfig);
}
}