Browse Source

Add empty detection

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

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

@@ -52,6 +52,11 @@ namespace DotNetCore.CAP.Internal

public ConsumerExecutorDescriptor SelectBestCandidate(string key, IReadOnlyList<ConsumerExecutorDescriptor> executeDescriptor)
{
if (executeDescriptor.Count == 0)
{
return null;
}

var result = MatchUsingName(key, executeDescriptor);
if (result != null)
{


Loading…
Cancel
Save