Bläddra i källkod

Rename DefaultGroup options to DefaultGroupName

master
Savorboard 3 år sedan
förälder
incheckning
369f3c9377
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. +1
    -1
      src/DotNetCore.CAP/Internal/IConsumerServiceSelector.Default.cs
  2. +1
    -1
      test/DotNetCore.CAP.Test/CustomConsumerSubscribeTest.cs

+ 1
- 1
src/DotNetCore.CAP/Internal/IConsumerServiceSelector.Default.cs Visa fil

@@ -173,7 +173,7 @@ namespace DotNetCore.CAP.Internal
var prefix = !string.IsNullOrEmpty(_capOptions.GroupNamePrefix)
? $"{_capOptions.GroupNamePrefix}."
: string.Empty;
attribute.Group = $"{prefix}{attribute.Group ?? _capOptions.DefaultGroup}.{_capOptions.Version}";
attribute.Group = $"{prefix}{attribute.Group ?? _capOptions.DefaultGroupName}.{_capOptions.Version}";
}

private ConsumerExecutorDescriptor InitDescriptor(


+ 1
- 1
test/DotNetCore.CAP.Test/CustomConsumerSubscribeTest.cs Visa fil

@@ -104,7 +104,7 @@ namespace DotNetCore.CAP.Test
{
if (attr.Group == null)
{
attr.Group = _capOptions.DefaultGroup + "." + _capOptions.Version;
attr.Group = _capOptions.DefaultGroupName + "." + _capOptions.Version;
}
else
{


Laddar…
Avbryt
Spara