소스 검색

add dashboard introduction to readme.md

master
Savorboard 7 년 전
부모
커밋
fd4a0d2b77
2개의 변경된 파일43개의 추가작업 그리고 0개의 파일을 삭제
  1. +37
    -0
      README.md
  2. +6
    -0
      README.zh-cn.md

+ 37
- 0
README.md 파일 보기

@@ -195,6 +195,43 @@ public void ConfigureServices(IServiceCollection services)
}
```

### Dashboard

At CAP 2.1 version and above provided the dashboard pages, you can easily check the send and receive messages.
In addition, you can also view real time sent or received messages.

In the distributed environment, the dashboard built-in integrated [Consul] (http://consul.io) as a node discovery, while the realization of the gateway agent function, you can also easily view the node or other node data, It's like you are visiting local resources.

```c#
services.AddCap(x =>
{
//...
// Register Dashboard
x.UseDashboard();
// Register to Consul
x.UseDiscovery(d =>
{
d.DiscoveryServerHostName = "localhost";
d.DiscoveryServerPort = 8500;
d.CurrentNodeHostName = "localhost";
d.CurrentNodePort = 5800;
d.NodeId = 1;
d.NodeName = "CAP No.1 Node";
});
});
```

![dashboard](http://images2017.cnblogs.com/blog/250417/201710/250417-20171004220827302-189215107.png)

![received](http://images2017.cnblogs.com/blog/250417/201710/250417-20171004220934115-1107747665.png)

![subscibers](http://images2017.cnblogs.com/blog/250417/201710/250417-20171004220949193-884674167.png)

![nodes](http://images2017.cnblogs.com/blog/250417/201710/250417-20171004221001880-1162918362.png)


## Contribute

One of the easiest ways to contribute is to participate in discussions and discuss issues. You can also contribute by submitting pull requests with code changes.


+ 6
- 0
README.zh-cn.md 파일 보기

@@ -222,7 +222,13 @@ services.AddCap(x =>
});
```

![dashboard](http://images2017.cnblogs.com/blog/250417/201710/250417-20171004220827302-189215107.png)

![received](http://images2017.cnblogs.com/blog/250417/201710/250417-20171004220934115-1107747665.png)

![subscibers](http://images2017.cnblogs.com/blog/250417/201710/250417-20171004220949193-884674167.png)

![nodes](http://images2017.cnblogs.com/blog/250417/201710/250417-20171004221001880-1162918362.png)

## 贡献



불러오는 중...
취소
저장