Dibk.Ftpb.Common.AltinnApps
1.2.3
dotnet add package Dibk.Ftpb.Common.AltinnApps --version 1.2.3
NuGet\Install-Package Dibk.Ftpb.Common.AltinnApps -Version 1.2.3
<PackageReference Include="Dibk.Ftpb.Common.AltinnApps" Version="1.2.3" />
<PackageVersion Include="Dibk.Ftpb.Common.AltinnApps" Version="1.2.3" />
<PackageReference Include="Dibk.Ftpb.Common.AltinnApps" />
paket add Dibk.Ftpb.Common.AltinnApps --version 1.2.3
#r "nuget: Dibk.Ftpb.Common.AltinnApps, 1.2.3"
#:package Dibk.Ftpb.Common.AltinnApps@1.2.3
#addin nuget:?package=Dibk.Ftpb.Common.AltinnApps&version=1.2.3
#tool nuget:?package=Dibk.Ftpb.Common.AltinnApps&version=1.2.3
Dibk.Ftpb.Common.AltinnApps
Verktøyklasser for å konfigurere og sette opp Altinn 3 applikasjoner i DIBK sitt FtPB-økosystem.
<summary>Registrering av service</summary>
service.AddDibkCommonAltinnAppServices(config)
Eksport av OTEL data til Elasticsearch
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>
Appsettings
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
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 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
- Altinn.App.Api (>= 8.10.1)
- Altinn.App.Core (>= 8.10.1)
- Dibk.Ftpb.Common (>= 1.3.3)
- Dibk.Ftpb.Common.AltinnClient (>= 1.1.2)
- Dibk.Ftpb.Common.Datamodels (>= 1.9.26)
- Dibk.Ftpb.Validation.Client (>= 1.1.0-regfo-alpha)
- DiBK.RuleValidator.Extensions (>= 3.1.1)
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.2.3 | 0 | 2/25/2026 |
| 1.2.2 | 39 | 2/24/2026 |
| 1.2.1 | 39 | 2/24/2026 |
| 1.2.0 | 43 | 2/24/2026 |
| 1.1.1 | 39 | 2/24/2026 |
| 1.1.0 | 51 | 2/23/2026 |
| 1.0.13 | 49 | 2/22/2026 |
| 1.0.12 | 106 | 2/13/2026 |
| 1.0.11 | 90 | 2/13/2026 |
| 1.0.10 | 95 | 2/12/2026 |
| 1.0.9 | 256 | 1/16/2026 |
| 1.0.8 | 175 | 1/7/2026 |
| 1.0.7 | 269 | 12/19/2025 |
| 1.0.6 | 297 | 12/18/2025 |
| 1.0.5 | 279 | 11/4/2025 |
| 1.0.4 | 204 | 11/4/2025 |
| 1.0.4-preview-2 | 224 | 11/3/2025 |
| 1.0.4-preview-1 | 202 | 11/3/2025 |
| 1.0.3 | 306 | 9/3/2025 |
| 1.0.2 | 295 | 6/27/2025 |
0.0.1 - Initial version.