commit | e2882cf481a7fb118206f78e00c8d94b76c287a7 | [log] [tgz] |
---|---|---|
author | Han Gao <dhangao@hotmail.com> | Mon Aug 15 16:06:25 2022 +0800 |
committer | GitHub <noreply@github.com> | Mon Aug 15 16:06:25 2022 +0800 |
tree | 3e7a3ccea2633ba6642cc6ada09a9493b552d27b | |
parent | e13eff1263344254361d479ad22c7d258f66b338 [diff] |
[ISSUE #34] Document about http, zookeeper, consul and nacos registration (#35) * Document about http, zookeeper, consul and nacos registration * add condition for skip
ShenYu .NET client can help you register your ASP.NET Core applications into ShenYu, similar with Java client. It supports below registration type,
Please visit related document to start to start.
For http registration, please visit HTTP Registration.
For zookeeper registration, please visit Zookeeper Registration.
For consul registration, please visit Consul Registration.
For nacos registration, please visit Nacos Registration.
You can use ShenyuClient
attribute to register your APIs.
e.g. add ShenyuClient
attribute in class as route prefix.
[ShenyuClient("/test/**")] public class TestController { ... }
e.g. add ShenyuClient
attribute in method as route path. The final route path will be /test/hello
for this endpoint.
[ShenyuClient("/test")] public class TestController { [ShenyuClient("hello")] public IEnumerable<WeatherForecast> GetTest() { ... } ... }