Skip to content

Commit

Permalink
doc: update the usage section
Browse files Browse the repository at this point in the history
  • Loading branch information
Bolorunduro Winner-Timothy B authored Feb 17, 2018
1 parent 0d4709a commit 0a1f98b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![CircleCI](https://circleci.com/gh/bolorundurowb/dotenv.net.svg?style=svg)](https://circleci.com/gh/bolorundurowb/dotenv.net) [![NuGet Badge](https://buildstats.info/nuget/dotenv.net)](https://www.nuget.org/packages/dotenv.net) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Book session on Codementor](https://cdn.codementor.io/badges/book_session_github.svg)](https://www.codementor.io/bolorundurowb?utm_source=github&utm_medium=button&utm_term=bolorundurowb&utm_campaign=github)

dotenv.net is a zero-dependency module that loads environment variables from a .env file into `Environment`.
dotenv.net is a zero-dependency module that loads environment variables from a .env environment variable file into `System.Environment`. Please feel free to create issues with feature requests and raise bugs there too.

## Contributors

Expand Down Expand Up @@ -58,9 +58,9 @@ the values saved in your `.env` file would be avaibale in your application and c
Environment.GetEnvironmentVariable("DB_HOST"); // would output 'localhost'
```

## With ASP.NET Core or any other DI system that uses `IServiceCollection`
## Using with DI (`IServiceCollection`)

In the `Startup.cs` file
If using with ASP.NET Core or any other system that uses `IServiceCollection` for its dependency injection, in the `Startup.cs` file

``` csharp
public void ConfigureServices(IServiceCollection services)
Expand Down

0 comments on commit 0a1f98b

Please sign in to comment.