瀏覽代碼

refactor.

undefined
yangxiaodong 7 年之前
父節點
當前提交
dab9d6446a
共有 2 個文件被更改,包括 0 次插入32 次删除
  1. +0
    -8
      src/Cap.Consistency/Builder/BrokerOptions.cs
  2. +0
    -24
      src/Cap.Consistency/Builder/ConsistencyMiddleware.cs

+ 0
- 8
src/Cap.Consistency/Builder/BrokerOptions.cs 查看文件

@@ -1,8 +0,0 @@
namespace Cap.Consistency
{
public class BrokerOptions
{
public string HostName { get; set; }

}
}

+ 0
- 24
src/Cap.Consistency/Builder/ConsistencyMiddleware.cs 查看文件

@@ -1,24 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Cap.Consistency.Routing;

namespace Cap.Consistency.Builder
{
public class ConsistencyMiddleware
{
private readonly ITopicRoute _router;

public ConsistencyMiddleware(ITopicRoute router) {
_router = router;
}

public async Task Invoke() {
var context = new TopicRouteContext();
context.Routes.Add(_router);

await _router.RouteAsync(context);
}
}
}

Loading…
取消
儲存