KS.Fiks.Arkiv.Models.V1 0.0.18

There is a newer version of this package available.
See the version list below for details.
dotnet add package KS.Fiks.Arkiv.Models.V1 --version 0.0.18                
NuGet\Install-Package KS.Fiks.Arkiv.Models.V1 -Version 0.0.18                
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="KS.Fiks.Arkiv.Models.V1" Version="0.0.18" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KS.Fiks.Arkiv.Models.V1 --version 0.0.18                
#r "nuget: KS.Fiks.Arkiv.Models.V1, 0.0.18"                
#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.
// Install KS.Fiks.Arkiv.Models.V1 as a Cake Addin
#addin nuget:?package=KS.Fiks.Arkiv.Models.V1&version=0.0.18

// Install KS.Fiks.Arkiv.Models.V1 as a Cake Tool
#tool nuget:?package=KS.Fiks.Arkiv.Models.V1&version=0.0.18                

Bruk av KS.Fiks.Arkiv.Models.V1

Modellene kan brukes direkte med import av namespace:

using KS.Fiks.Arkiv.Models.V1.Arkivering.Arkivmelding;
using KS.Fiks.Arkiv.Models.V1.Kodelister;

var arkivmelding = new Arkivmelding
{
    ///...
};

var sendtTilbakeKode = FlytStatusKoder.SendtTilbake.Verdi;

Skjema er inkludert in nuget-pakken og kan refereres med refleksjon:

using System.Reflection;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
using KS.Fiks.Arkiv.Models.V1.Arkivering.Arkivmelding;

void ValidationHandler(object? _, ValidationEventArgs args)
{
    if (args.Severity == XmlSeverityType.Warning)
        Console.Write("WARNING: ");
    else if (args.Severity == XmlSeverityType.Error)
        Console.Write("ERROR: ");

    Console.WriteLine(args.Message);
}

var settings = new XmlReaderSettings
{
    ValidationType = ValidationType.Schema
};
settings.ValidationEventHandler += ValidationHandler;

var modelsAssembly = Assembly
    .Load("KS.Fiks.Arkiv.Models.V1");

var schemaNames = modelsAssembly.GetManifestResourceNames();
foreach (var name in schemaNames)
{
    using var resourceStream = modelsAssembly.GetManifestResourceStream(name);
    using var streamReader = new StreamReader(resourceStream!);
    var xmlSchema = XmlSchema.Read(streamReader, ValidationHandler);
    settings.Schemas.Add(xmlSchema!);
}

var arkivmelding = new Arkivmelding
{
    //System = "system",
    MeldingId = "meldingId"
};
using var stream = new MemoryStream();
var serializer = new XmlSerializer(arkivmelding.GetType());
serializer.Serialize(stream, arkivmelding);
stream.Position = 0;

var reader = XmlReader.Create(stream, settings);
var doc = new XmlDocument();

//Vil printe melding med ERROR som sier at `System` er forventet i arkivmeldingobjektet
doc.Load(reader);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on KS.Fiks.Arkiv.Models.V1:

Package Downloads
KS.Fiks.Arkiv.Forenklet.Arkivering.V1

Forenklet arkivering for Fiks-Arkiv V1

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 142 10/29/2024
1.0.2 91 10/28/2024
1.0.1 21,976 6/9/2024
1.0.0 98 6/7/2024
0.9.23 10,959 2/19/2024
0.9.22 122 2/15/2024
0.9.21 886 1/4/2024
0.9.20 6,380 11/24/2023
0.9.19 269 11/6/2023
0.9.18 495 8/29/2023
0.9.17 381 8/16/2023
0.9.16 342 6/23/2023
0.9.15 461 5/24/2023
0.9.14 1,021 4/11/2023
0.9.13 350 3/23/2023
0.9.12 459 2/24/2023
0.9.11 256 2/24/2023
0.9.10 22,070 1/30/2023
0.9.9 424 1/10/2023
0.9.8 359 12/20/2022
0.9.7 333 12/12/2022
0.9.6 382 11/16/2022
0.9.5 491 11/4/2022
0.9.4 415 10/21/2022
0.9.3 9,307 9/21/2022
0.9.2 485 9/18/2022
0.9.1 420 9/6/2022
0.0.22 622 8/23/2022
0.0.21 418 8/22/2022
0.0.20 2,215 8/2/2022
0.0.19 720 7/6/2022
0.0.18 423 7/6/2022
0.0.17 436 7/5/2022
0.0.16 424 7/4/2022
0.0.15 2,322 7/3/2022
0.0.14 439 6/29/2022
0.0.13 451 6/27/2022
0.0.12 475 6/20/2022
0.0.11 442 6/15/2022
0.0.10 433 6/7/2022
0.0.9 2,886 5/25/2022
0.0.8 503 5/16/2022
0.0.7 528 4/26/2022
0.0.6 445 4/26/2022
0.0.5 752 4/5/2022
0.0.4 412 4/5/2022
0.0.3 443 4/4/2022
0.0.2 428 4/1/2022
0.0.2-rc.build.202204011319... 126 4/1/2022
0.0.1 452 4/1/2022