![]() |
VOOZH | about |
dotnet add package Dibk.Ftpb.Common.AltinnApps --version 1.2.4
NuGet\Install-Package Dibk.Ftpb.Common.AltinnApps -Version 1.2.4
<PackageReference Include="Dibk.Ftpb.Common.AltinnApps" Version="1.2.4" />
<PackageVersion Include="Dibk.Ftpb.Common.AltinnApps" Version="1.2.4" />Directory.Packages.props
<PackageReference Include="Dibk.Ftpb.Common.AltinnApps" />Project file
paket add Dibk.Ftpb.Common.AltinnApps --version 1.2.4
#r "nuget: Dibk.Ftpb.Common.AltinnApps, 1.2.4"
#:package Dibk.Ftpb.Common.AltinnApps@1.2.4
#addin nuget:?package=Dibk.Ftpb.Common.AltinnApps&version=1.2.4Install as a Cake Addin
#tool nuget:?package=Dibk.Ftpb.Common.AltinnApps&version=1.2.4Install as a Cake Tool
Verktøyklasser for å konfigurere og sette opp Altinn 3 applikasjoner i DIBK sitt FtPB-økosystem.
<summary>Registrering av service</summary>
service.AddDibkCommonAltinnAppServices(config)
Registrering av service for eksport av OTEL-metrics til Elasticsearch gjøres vha extensionmetoden AddOtelElasticExporters. Det er viktig å påse at servicen blir registert etter at settings er henta fra KeyVault.
<details>
<summary>Eksempel på registrering av service</summary>
// ###########################################################################
// # Unless you are sure what you are doing do not change the following code #
// ###########################################################################
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
ConfigureServices(builder.Services, builder.Configuration);
builder.WebHost.ConfigureAppWebHost(args);
if (!builder.Environment.IsDevelopment())
{
builder.AddAzureKeyVaultAsConfigProvider(); // KeyVault lastes her
}
builder.Services.AddOtelElasticExporters(builder.Configuration); // Registrere her
WebApplication app = builder.Build();
Configure();
app.Run();
</details>
Settings som må være på plass for at ekspostering av OpenTelemetry-data til Elasticsearch skal fungere
appsettings.json må inneholde følgende:
{
"AppSettings": {
"UseOpenTelemetry": true
},
"OTEL_RESOURCE_ATTRIBUTES": "deployment.environment=Local",
"OTEL_METRICS_EXPORTER": "otlp",
"OTEL_LOGS_EXPORTER": "otlp",
"OpenTelemetry": {
"ElasticExporter": {
"Endpoint": "https://ein-eller-ana-identifikator.apm.uksouth.azure.elastic-cloud.com:443"
}
}
}
Miljøspesifikke appsettings.{miljø}.json inneholder endringer fra standarden. Dette er typisk som følger:
{
"OTEL_RESOURCE_ATTRIBUTES": "deployment.environment=Test", // Miljø
"OpenTelemetry": {
"ElasticExporter": {
"Endpoint": "https://ein-heilt-ana-identifiketor.apm.uksouth.azure.elastic-cloud.com:443" // endepunkt
}
}
}
Key vault (eller secrets.json ved lokal utvikling) må inneholde authorization settings
Key: OpenTelemetry--ElasticExporter--Headers
Value: Authorization=Bearer heMMEligHET2000
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.4 | 167 | 2/27/2026 |
| 1.2.3 | 114 | 2/25/2026 |
| 1.2.2 | 123 | 2/24/2026 |
| 1.2.1 | 150 | 2/24/2026 |
| 1.2.0 | 128 | 2/24/2026 |
| 1.1.1 | 138 | 2/24/2026 |
| 1.1.0 | 148 | 2/23/2026 |
| 1.0.13 | 120 | 2/22/2026 |
| 1.0.12 | 240 | 2/13/2026 |
| 1.0.11 | 116 | 2/13/2026 |
| 1.0.10 | 122 | 2/12/2026 |
| 1.0.9 | 301 | 1/16/2026 |
| 1.0.8 | 212 | 1/7/2026 |
| 1.0.7 | 296 | 12/19/2025 |
| 1.0.6 | 323 | 12/18/2025 |
| 1.0.5 | 314 | 11/4/2025 |
| 1.0.4 | 234 | 11/4/2025 |
| 1.0.4-preview-2 | 254 | 11/3/2025 |
| 1.0.4-preview-1 | 227 | 11/3/2025 |
| 1.0.3 | 330 | 9/3/2025 |
0.0.1 - Initial version.