VOOZH about

URL: https://www.nuget.org/packages/Dibk.Ftpb.Common.AltinnApps/

⇱ NuGet Gallery | Dibk.Ftpb.Common.AltinnApps 1.2.4




Dibk.Ftpb.Common.AltinnApps 1.2.4

dotnet add package Dibk.Ftpb.Common.AltinnApps --version 1.2.4
 
 
NuGet\Install-Package Dibk.Ftpb.Common.AltinnApps -Version 1.2.4
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dibk.Ftpb.Common.AltinnApps" Version="1.2.4" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dibk.Ftpb.Common.AltinnApps" Version="1.2.4" />
 
Directory.Packages.props
<PackageReference Include="Dibk.Ftpb.Common.AltinnApps" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Dibk.Ftpb.Common.AltinnApps --version 1.2.4
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Dibk.Ftpb.Common.AltinnApps, 1.2.4"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Dibk.Ftpb.Common.AltinnApps@1.2.4
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dibk.Ftpb.Common.AltinnApps&version=1.2.4
 
Install as a Cake Addin
#tool nuget:?package=Dibk.Ftpb.Common.AltinnApps&version=1.2.4
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.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
Loading failed

0.0.1 - Initial version.