Commit ce07c555 authored by Savorboard's avatar Savorboard

Add empty detection

parent 55f07ee1
...@@ -52,6 +52,11 @@ namespace DotNetCore.CAP.Internal ...@@ -52,6 +52,11 @@ namespace DotNetCore.CAP.Internal
public ConsumerExecutorDescriptor SelectBestCandidate(string key, IReadOnlyList<ConsumerExecutorDescriptor> executeDescriptor) public ConsumerExecutorDescriptor SelectBestCandidate(string key, IReadOnlyList<ConsumerExecutorDescriptor> executeDescriptor)
{ {
if (executeDescriptor.Count == 0)
{
return null;
}
var result = MatchUsingName(key, executeDescriptor); var result = MatchUsingName(key, executeDescriptor);
if (result != null) if (result != null)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment