From 369f3c9377ba10c64cebb9677c0e7e905ccb28e3 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Fri, 5 Mar 2021 09:38:59 +0800 Subject: [PATCH] Rename DefaultGroup options to DefaultGroupName --- src/DotNetCore.CAP/Internal/IConsumerServiceSelector.Default.cs | 2 +- test/DotNetCore.CAP.Test/CustomConsumerSubscribeTest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DotNetCore.CAP/Internal/IConsumerServiceSelector.Default.cs b/src/DotNetCore.CAP/Internal/IConsumerServiceSelector.Default.cs index 7bfc988..cfec814 100644 --- a/src/DotNetCore.CAP/Internal/IConsumerServiceSelector.Default.cs +++ b/src/DotNetCore.CAP/Internal/IConsumerServiceSelector.Default.cs @@ -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( diff --git a/test/DotNetCore.CAP.Test/CustomConsumerSubscribeTest.cs b/test/DotNetCore.CAP.Test/CustomConsumerSubscribeTest.cs index e253fb4..bb5639b 100644 --- a/test/DotNetCore.CAP.Test/CustomConsumerSubscribeTest.cs +++ b/test/DotNetCore.CAP.Test/CustomConsumerSubscribeTest.cs @@ -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 {