Reference services instead of application in vcap config example

Signed-off-by: Dave Goddard <dave@goddard.id.au>
This commit is contained in:
Keaty Gross 2016-09-26 15:22:52 -04:00 коммит произвёл Steel Toe Team
Родитель f6b74e3e6b
Коммит 076c2d6a7f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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.