Reference services instead of application in vcap config example
Signed-off-by: Dave Goddard <dave@goddard.id.au>
This commit is contained in:
Родитель
f6b74e3e6b
Коммит
076c2d6a7f
|
@ -60,7 +60,7 @@ You can access the [VCAP_SERVICES](http://docs.cloudfoundry.org/devguide/deploy-
|
|||
```
|
||||
var config = builder.Build();
|
||||
var mySqlName = config["vcap:services:[service-name]:0:name"]
|
||||
var instanceId = config["vcap:application:[service-name]:0:credentials:uri"]
|
||||
var instanceId = config["vcap:services:[service-name]:0:credentials:uri"]
|
||||
....
|
||||
```
|
||||
Note: The provider uses the built-in [JSON configuration provider](https://github.com/aspnet/Configuration/tree/dev/src/Microsoft.Extensions.Configuration.Json) when parsing the JSON in the `VCAP_*` environment variables.
|
||||
|
|
Загрузка…
Ссылка в новой задаче