Browse Source

reading named binding (#844)

* reading named binding

Reading named binding took me quite some time to actually get it to working, I believe adding this line would help other readers save some time

* Update docs/reference/service_discovery.md

Co-authored-by: John Luo <johluo@microsoft.com>
finitereality/replica-status-colors
Habib Ahmed Qureshi 6 years ago
committed by GitHub
parent
commit
b9692e574c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/reference/service_discovery.md

2
docs/reference/service_discovery.md

@ -232,7 +232,7 @@ We'll follow the example of the connection string for `postgres` is generated an
4. On startup, the environment variable configuration source reads all environment variables and translates them to the config key format (see table above). 4. On startup, the environment variable configuration source reads all environment variables and translates them to the config key format (see table above).
5. When the application calls `GetConnectionString("postgres")`, the method will read the `connectionstrings:postgres` key and return the value. 5. When the application calls `GetConnectionString("postgres")`, the method will read the `connectionstrings:postgres` key and return the value. For the case of the named binding, if the application calls `GetConnectionString("postgres:mybinding")`, the method will read the `connectionstrings:postgres:mybinding` key and return the value.
## How it works: Deployed applications ## How it works: Deployed applications

Loading…
Cancel
Save