ソースを参照

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)

## 贡献



読み込み中…
キャンセル
保存