Browse Source

Fix unit tests

master
Savorboard 5 years ago
parent
commit
cf3829993b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/DotNetCore.CAP/Internal/IConsumerServiceSelector.Default.cs

+ 1
- 1
src/DotNetCore.CAP/Internal/IConsumerServiceSelector.Default.cs View File

@@ -166,7 +166,7 @@ namespace DotNetCore.CAP.Internal


private ConsumerExecutorDescriptor MatchUsingName(string key, IReadOnlyList<ConsumerExecutorDescriptor> executeDescriptor) private ConsumerExecutorDescriptor MatchUsingName(string key, IReadOnlyList<ConsumerExecutorDescriptor> executeDescriptor)
{ {
return executeDescriptor.FirstOrDefault(x => x.Attribute.Name == key);
return executeDescriptor.FirstOrDefault(x => x.Attribute.Name.Equals(key, StringComparison.InvariantCultureIgnoreCase));
} }


private ConsumerExecutorDescriptor MatchAsteriskUsingRegex(string key, IReadOnlyList<ConsumerExecutorDescriptor> executeDescriptor) private ConsumerExecutorDescriptor MatchAsteriskUsingRegex(string key, IReadOnlyList<ConsumerExecutorDescriptor> executeDescriptor)


Loading…
Cancel
Save