mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
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
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);
|
|
}
|
|
}
|
|
|