Skip to content

Commit

Permalink
more expressivity in queue configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ppossanzini committed Nov 18, 2024
1 parent 50f69e1 commit c9532e2
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Arbitrer/extensions/ArbitrerExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -344,19 +344,7 @@ public static ArbitrerOptions SetTypesQueueName(this ArbitrerOptions options, Fu

return options;
}

public static ArbitrerOptions SetTypesQueueName(this ArbitrerOptions options, Func<IEnumerable<Type>> typeselect, Func<string, string> typeNameFunction)
{
var types = typeselect();
foreach (var t in types)
{
var name = t.ArbitrerTypeName(options);
var result = typeNameFunction(name);
options.SetTypeQueueName(t, result);
}

return options;
}


/// <summary>
/// Set a prefix for notifications queue name.
Expand Down

0 comments on commit c9532e2

Please sign in to comment.