Microsoft.Extensions.Configuration.EnvironmentVariables 8.0.0-rc.2.23479.6
About
Environment variables configuration provider implementation for Microsoft.Extensions.Configuration. This package enables you to read configuration parameters from environment variables. You can use EnvironmentVariablesExtensions.AddEnvironmentVariables extension method on IConfigurationBuilder
to add the environment variables configuration provider to the configuration builder.
How to Use
The following example shows how to read application configuration from environment variables.
using System;
using Microsoft.Extensions.Configuration;
class Program
{
static void Main()
{
// Build a configuration object from environment variables
IConfiguration config = new ConfigurationBuilder()
.AddEnvironmentVariables()
.Build();
// Read configuration values
Console.WriteLine($"Server: {config["Server"]}");
Console.WriteLine($"Database: {config["Database"]}");
}
}
Additional Documentation
Feedback & Contributing
Microsoft.Extensions.Configuration.EnvironmentVariables is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on Microsoft.Extensions.Configuration.EnvironmentVariables.
Packages | Downloads |
---|---|
Microsoft.AspNetCore
Microsoft.AspNetCore
|
9 |
Microsoft.AspNetCore.AzureAppServices.HostingStartup
ASP.NET Core lightup integration with Azure AppServices.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/3c37ef8f5358abb303c05d299f029fca7d867d56
|
9 |
Microsoft.AspNetCore.AzureAppServices.HostingStartup
ASP.NET Core lightup integration with Azure AppServices.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/c49ccc8727c620ce1cb8fb431bb3fe8f2e747236
|
9 |
Microsoft.AspNetCore.AzureAppServices.HostingStartup
ASP.NET Core lightup integration with Azure AppServices.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/c663adee8e64ba5d379fa0edfb8201984a7df7d0
|
10 |
Microsoft.AspNetCore.AzureAppServices.HostingStartup
ASP.NET Core lightup integration with Azure AppServices.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/d47e49e9c1e173ac90821f7e89cc38e710274241
|
10 |
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
|
10 |
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
|
20 |
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/be0a4a7f4cf06cbd6ec714bd1d9afee6bdb040a8
|
27 |
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications.
This package was built from the source code at https://github.com/aspnet/Hosting/tree/0724e6cde1149ee1a19bfec9c13a2c9327b71213
|
12 |
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
15 |
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
16 |
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications.
|
134 |
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
|
12 |
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
|
5,329 |
Microsoft.Extensions.Hosting
.NET Core hosting and startup infrastructures for applications.
|
8,809 |
Microsoft.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
|
9 |
Microsoft.Identity.Web.TokenAcquisition
Implementation for higher level API for confidential client applications (ASP.NET Core and SDK/.NET).
|
10 |
Ocelot
This project is aimed at people using .NET running a micro services / service orientated architecture that need a unified point of entry into their system. In particular I want easy integration with IdentityServer reference and bearer tokens. We have been unable to find this in my current workplace without having to write our own Javascript middlewares to handle the IdentityServer reference tokens. We would rather use the IdentityServer code that already exists to do this. Ocelot is a bunch of middlewares in a specific order. Ocelot manipulates the HttpRequest object into a state specified by its configuration until it reaches a request builder middleware where it creates a HttpRequestMessage object which is used to make a request to a downstream service. The middleware that makes the request is the last thing in the Ocelot pipeline. It does not call the next middleware. The response from the downstream service is stored in a per request scoped repository and retrived as the requests goes back up the Ocelot pipeline. There is a piece of middleware that maps the HttpResponseMessage onto the HttpResponse object and that is returned to the client. That is basically it with a bunch of other features.
|
11 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET Framework 4.6.2
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-rc.2.23479.6)
- Microsoft.Extensions.Configuration (>= 8.0.0-rc.2.23479.6)
.NET 6.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-rc.2.23479.6)
- Microsoft.Extensions.Configuration (>= 8.0.0-rc.2.23479.6)
.NET 7.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-rc.2.23479.6)
- Microsoft.Extensions.Configuration (>= 8.0.0-rc.2.23479.6)
.NET 8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-rc.2.23479.6)
- Microsoft.Extensions.Configuration (>= 8.0.0-rc.2.23479.6)
.NET Standard 2.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0-rc.2.23479.6)
- Microsoft.Extensions.Configuration (>= 8.0.0-rc.2.23479.6)