Pavas.Runtime.ApplicationContext
1.0.0
dotnet add package Pavas.Runtime.ApplicationContext --version 1.0.0
NuGet\Install-Package Pavas.Runtime.ApplicationContext -Version 1.0.0
<PackageReference Include="Pavas.Runtime.ApplicationContext" Version="1.0.0" />
paket add Pavas.Runtime.ApplicationContext --version 1.0.0
#r "nuget: Pavas.Runtime.ApplicationContext, 1.0.0"
// Install Pavas.Runtime.ApplicationContext as a Cake Addin #addin nuget:?package=Pavas.Runtime.ApplicationContext&version=1.0.0 // Install Pavas.Runtime.ApplicationContext as a Cake Tool #tool nuget:?package=Pavas.Runtime.ApplicationContext&version=1.0.0
Pavas.Runtime.ApplicationContext
Pavas.Runtime.ApplicationContext is a library designed to manage the application context in terms of its name, version, build mode, environment, and other key configurations. This library is useful for standardizing and centralizing application configuration information, making it easier to access and manipulate during the program's execution.
Features
- Centralized Configuration: Provides an
ApplicationContext
class that encapsulates all relevant information about the application. - Easy Integration: Easily integrates with ASP.NET Core via dependency injection.
Installation
To use this library, it must be included in the project. This is usually done through dependency injection.
Usage
Configuring the Application Context
Define an application context at the start of the project:
var applicationContext = new ApplicationContext { ApplicationName = "Test", ApplicationVersion = new Version("1.0.0"), BuildMode = ApplicationBuildMode.Release, Environment = ApplicationEnvironment.Debug, BaseUrl = "api/v1" };
Inject the context into the service during the application's service configuration:
builder.Services.AddApplicationContext(applicationContext);
Contribution
This is a project under continuous development. If you wish to contribute, please fork the repository, create a new branch, and submit a pull request.
License
This project is licensed under the terms of the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Pavas.Patterns.Context (>= 1.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 128 | 8/25/2024 |