Commit e89225bf authored by yangxiaodong's avatar yangxiaodong

Reflector and rename.

parent 3ebc726c
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Cap.Consistency
{
public interface ITopicRouteHandler
{
Task RouteAsync(TopicRouteContext context);
}
}
...@@ -22,7 +22,7 @@ namespace Cap.Consistency.Internal ...@@ -22,7 +22,7 @@ namespace Cap.Consistency.Internal
return executeDescriptor.FirstOrDefault(x => x.Attribute.Name == key); return executeDescriptor.FirstOrDefault(x => x.Attribute.Name == key);
} }
public IReadOnlyList<ConsumerExecutorDescriptor> SelectCandidates(TopicRouteContext context) { public IReadOnlyList<ConsumerExecutorDescriptor> SelectCandidates(TopicContext context) {
var consumerServices = context.ServiceProvider.GetServices<IConsumerService>(); var consumerServices = context.ServiceProvider.GetServices<IConsumerService>();
......
...@@ -15,7 +15,7 @@ namespace Cap.Consistency.Internal ...@@ -15,7 +15,7 @@ namespace Cap.Consistency.Internal
_selector = selector; _selector = selector;
} }
public ConcurrentDictionary<string, ConsumerExecutorDescriptor> GetCandidatesMethods(TopicRouteContext routeContext) { public ConcurrentDictionary<string, ConsumerExecutorDescriptor> GetCandidatesMethods(TopicContext routeContext) {
if (Entries.Count == 0) { if (Entries.Count == 0) {
......
using System;
using System.Collections.Generic;
namespace Cap.Consistency
{
public class TopicRouteContext
{
public IServiceProvider ServiceProvider { get; set; }
public IList<ITopicRouteHandler> Routes { get; set; }
}
}
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