fix routing context
This commit is contained in:
parent
b23b3850ef
commit
99192c8eac
|
|
@ -42,11 +42,10 @@ public class RoutingContext : IRoutingContext
|
||||||
_routerAgentIds = agentService.GetAgents(new AgentFilter
|
_routerAgentIds = agentService.GetAgents(new AgentFilter
|
||||||
{
|
{
|
||||||
Type = AgentType.Routing
|
Type = AgentType.Routing
|
||||||
}).Result.Items
|
}).Result.Items.Select(x => x.Id).ToArray();
|
||||||
.Select(x => x.Id).ToArray();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return _stack.Where(x => !_routerAgentIds.Contains(x)).Last();
|
return _stack.Where(x => !_routerAgentIds.Contains(x)).LastOrDefault() ?? string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue