commit | bf11ea0732b491ded0654c89af71cd6a5a48abdb | [log] [tgz] |
---|---|---|
author | Han Gao <dhangao@hotmail.com> | Sun Apr 24 18:32:33 2022 +0800 |
committer | GitHub <noreply@github.com> | Sun Apr 24 18:32:33 2022 +0800 |
tree | 322cbe54b8d7e731c0db7c1619523dc1d21243a4 | |
parent | 822da9e331440be436706d227368da6a71518898 [diff] |
[ISSUE #4] Fix typo, add global.json for SDK version, and improve logs (#5) * fix typo, add global.json for SDK version, and improve logs * remove author since account not decided yet
For ASP.NET Core project, we can refer to the example code at examples/AspNetCoreExample
. What you need to do is quite simple and straightforward.
First, add the Shenyu ASP.NET Core dependency into project.
dotnet add package <todo>
Then, in Startup.ConfigureServices
method, add the ShenyuRegister
service.
public void ConfigureServices(IServiceCollection services) { ... services.AddShenyuRegister(this.Configuration); ... }
Finnaly, set your Shenyu
configurations in appsettings.json
.
{ "Shenyu": { "Register": { "ServerList": "http://localhost:9095", "UserName": "<your_admin_user>", "Password": "<your_admin_password>" }, "Client": { "AppName": "dotnet-example", "ContextPath": "/dotnet", "IsFull": false, "ClientType": "http" } } }
That's all! After finished above steps, you can just start your project and you can visit shenyu-admin
portal to see the APIs have been registered in Shenyu.