Roo.Azure.Configuration.Common
1.0.3
See the version list below for details.
dotnet add package Roo.Azure.Configuration.Common --version 1.0.3
NuGet\Install-Package Roo.Azure.Configuration.Common -Version 1.0.3
<PackageReference Include="Roo.Azure.Configuration.Common" Version="1.0.3" />
<PackageVersion Include="Roo.Azure.Configuration.Common" Version="1.0.3" />
<PackageReference Include="Roo.Azure.Configuration.Common" />
paket add Roo.Azure.Configuration.Common --version 1.0.3
#r "nuget: Roo.Azure.Configuration.Common, 1.0.3"
#:package Roo.Azure.Configuration.Common@1.0.3
#addin nuget:?package=Roo.Azure.Configuration.Common&version=1.0.3
#tool nuget:?package=Roo.Azure.Configuration.Common&version=1.0.3
Roo.Azure.Configuration
The Roo.Azure.Configuration packages are a C#, .NET SDK designed to simplify development and integrate with Azure services. This package is designed to allow new projects be setup with minimal configuration, standardize functionalities, improve developer productivity, and expand log information in Azure App Insights. This SDK is geared more towards a microservice architecture but can be used in any application that makes HTTP calls and/or uses Azure services. The SDK is split into 3 packages; Roo.Azure.Configuration.Common, Roo.Azure.Configuration.Common.Http, and Roo.Azure.Configuration.Common.Utilities:
Common: Header propagation, logger, Swagger setup, startup config, and simplified Azure Service Bus, Azure Feature Manager, and Redis.
Common.Http: HttpClient with custom headers, authentication (OAuth or Azure APIM), token storage, and object deserialization.
Common.Utilities: Ease of life functions such as type extensions and boiler plate's for Azure Blob and Azure File Share.
Check the Wiki out for more information on the packages, functionality, and usage.
Getting started
In your Program.cs, add values to the StartupModel then pass it to setup methods.
Web application:
var builder = WebApplication.CreateBuilder(args);
var startupModel = new StartupModel()
{
//Set values
}
builder.AddAzureAppConfiguration(startupModel);
builder.Services.ApplicationConfiguration(startupModel);
var httpClients = new Dictionary<string, string>()
{
{ "YourClientName", "BaseUrlForTheClient" }
};
builder.Services.RooHttpClientConfig(startupModel.ChannelId, httpClients);
Console application:
var builder = HostBuilder.ConfigureServices((hostContext, services) =>
{
var startupModel = new StartupModel()
{
//Set values
}
services.ApplicationConfiguration(startupModel);
var httpClients = new Dictionary<string, string>()
{
{ "YourClientName", "BaseUrlForTheClient" }
};
services.RooHttpClientConfig(startupModel.ChannelId, httpClients);
});
Installing the packages
You can install the packages into a project using the NuGet Package Manager in Visual Studio, just look up Roo.Azure.Configuration.Common and you'll be able to install them. If you prefer using the dotnet CLI then you can do so with:
dotnet add package Roo.Azure.Configuration.Common
dotnet add package Roo.Azure.Configuration.Common.Http
dotnet add package Roo.Azure.Configuration.Common.Utilities
Or you can add the project reference directly in your .csproj with (replace the x.x.x with your desired version):
<ItemGroup>
<PackageReference Include="Roo.Azure.Configuration.Common" Version="x.x.x" />
<PackageReference Include="Roo.Azure.Configuration.Common.Http" Version="x.x.x" />
<PackageReference Include="Roo.Azure.Configuration.Common.Utilities" Version="x.x.x" />
</ItemGroup>
Having trouble?
Feel free to reach out to me or open an issue.
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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Azure.Messaging.ServiceBus (>= 7.20.1)
- Microsoft.ApplicationInsights (>= 2.23.0)
- Microsoft.ApplicationInsights.AspNetCore (>= 2.23.0)
- Microsoft.ApplicationInsights.Kubernetes (>= 7.0.2)
- Microsoft.AspNetCore.Authentication.Certificate (>= 8.0.18)
- Microsoft.AspNetCore.DataProtection.StackExchangeRedis (>= 8.0.18)
- Microsoft.Azure.AppConfiguration.AspNetCore (>= 8.2.0)
- Microsoft.EntityFrameworkCore (>= 8.0.18)
- Microsoft.Extensions.Logging (>= 8.0.1)
- Microsoft.FeatureManagement (>= 4.1.0)
- Newtonsoft.Json (>= 13.0.3)
- StackExchange.Redis (>= 2.8.41)
- Swashbuckle.AspNetCore (>= 9.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Roo.Azure.Configuration.Common:
Package | Downloads |
---|---|
Roo.Azure.Configuration.Common.Http
Roo Azure Configuration SDK |
GitHub repositories
This package is not used by any popular GitHub repositories.