diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59841c9b..6ee7697a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.x + dotnet-version: 9.x - name: Print openssl version run: | openssl version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index add46a0f..eda10634 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.x + dotnet-version: 9.x - name: Print openssl version run: | openssl version diff --git a/Digipost.Api.Client.Archive.Tests/Digipost.Api.Client.Archive.Tests.csproj b/Digipost.Api.Client.Archive.Tests/Digipost.Api.Client.Archive.Tests.csproj index 3d973303..1d694716 100644 --- a/Digipost.Api.Client.Archive.Tests/Digipost.Api.Client.Archive.Tests.csproj +++ b/Digipost.Api.Client.Archive.Tests/Digipost.Api.Client.Archive.Tests.csproj @@ -3,7 +3,7 @@ true ..\signingkey.snk - net8.0 + net9.0 Digipost.Api.Client.Archive.Tests Digipost.Api.Client.Archive.Tests {c22f80a7-08e5-4836-9e24-e7bb431e9a5d} diff --git a/Digipost.Api.Client.Common.Tests/Digipost.Api.Client.Common.Tests.csproj b/Digipost.Api.Client.Common.Tests/Digipost.Api.Client.Common.Tests.csproj index 59e2498f..3f14aa60 100644 --- a/Digipost.Api.Client.Common.Tests/Digipost.Api.Client.Common.Tests.csproj +++ b/Digipost.Api.Client.Common.Tests/Digipost.Api.Client.Common.Tests.csproj @@ -3,7 +3,7 @@ true ..\signingkey.snk - net8.0 + net9.0 Digipost.Api.Client.Common.Tests Digipost.Api.Client.Common.Tests {BC85F48B-9584-41F7-BBE8-EBBEC1EEC7E8} diff --git a/Digipost.Api.Client.ConcurrencyTest/Digipost.Api.Client.ConcurrencyTest.csproj b/Digipost.Api.Client.ConcurrencyTest/Digipost.Api.Client.ConcurrencyTest.csproj deleted file mode 100644 index e3736ca1..00000000 --- a/Digipost.Api.Client.ConcurrencyTest/Digipost.Api.Client.ConcurrencyTest.csproj +++ /dev/null @@ -1,68 +0,0 @@ - - - - true - ..\signingkey.snk - net8.0 - Digipost.Api.Client.ConcurrencyTest - {7B5E5062-98E5-4312-9A82-28DF530BF5FB} - false - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - 1591 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - 1591 - bin\Release\Digipost.Api.Client.XML - - - - - - - - - {CD338E5A-1ED0-4331-B34E-8292FA8E387B} - Digipost.Api.Client.Common - - - {18CBB05A-B0AE-42FF-870F-1C213A238751} - Digipost.Api.Client.Resources - - - {4F528578-EBAC-4984-BF5D-972FEC0DC4FB} - Digipost.Api.Client.Send - - - {20A5FD61-56FD-46C4-A1A7-77EEFC7AAD2E} - Digipost.Api.Client - - - - - - Properties\SharedAssemblyInfo.cs - - - - - signingkey.snk - - - diff --git a/Digipost.Api.Client.ConcurrencyTest/DigipostAsync.cs b/Digipost.Api.Client.ConcurrencyTest/DigipostAsync.cs deleted file mode 100755 index 12fc6ea0..00000000 --- a/Digipost.Api.Client.ConcurrencyTest/DigipostAsync.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Net; -using Digipost.Api.Client.Common; -using Digipost.Api.Client.ConcurrencyTest.Enums; - -namespace Digipost.Api.Client.ConcurrencyTest -{ - internal class DigipostAsync : DigipostRunner - { - private readonly int _defaultConnectionLimit; - - public DigipostAsync(int numberOfRequests, int defaultConnectionLimit, ClientConfig clientconfig, - string thumbprint) - : base(clientconfig, thumbprint, numberOfRequests) - { - _defaultConnectionLimit = defaultConnectionLimit; - } - - public override void Run(RequestType requestType) - { - Stopwatch.Start(); - ServicePointManager.DefaultConnectionLimit = _defaultConnectionLimit; - - while (RunsLeft() > 0) - { - Send(Client, requestType); - } - - Stopwatch.Stop(); - DisplayTestResults(); - } - } -} diff --git a/Digipost.Api.Client.ConcurrencyTest/DigipostParalell.cs b/Digipost.Api.Client.ConcurrencyTest/DigipostParalell.cs deleted file mode 100755 index ee43075a..00000000 --- a/Digipost.Api.Client.ConcurrencyTest/DigipostParalell.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System.Collections.Generic; -using System.Net; -using System.Threading.Tasks; -using Digipost.Api.Client.Common; -using Digipost.Api.Client.ConcurrencyTest.Enums; -using Digipost.Api.Client.Send; - -namespace Digipost.Api.Client.ConcurrencyTest -{ - internal class DigipostParalell : DigipostRunner - { - private readonly int _defaultConnectionLimit; - private readonly int _degreeOfParallelism; - - public DigipostParalell(int numberOfRequests, int defaultConnectionLimit, int degreeOfParallelism, - ClientConfig clientConfig, string thumbprint) - : base(clientConfig, thumbprint, numberOfRequests) - { - _defaultConnectionLimit = defaultConnectionLimit; - _degreeOfParallelism = degreeOfParallelism; - } - - public override void Run(RequestType requestType) - { - Stopwatch.Start(); - ServicePointManager.DefaultConnectionLimit = _defaultConnectionLimit; - - var messages = new List(); - while (RunsLeft() > 0) - { - messages.Add(GetMessage()); - } - - var options = new ParallelOptions {MaxDegreeOfParallelism = _degreeOfParallelism}; - Parallel.ForEach(messages, options, message => Send(Client, requestType)); - - Stopwatch.Stop(); - DisplayTestResults(); - } - } -} diff --git a/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs b/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs deleted file mode 100755 index f029e12a..00000000 --- a/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs +++ /dev/null @@ -1,114 +0,0 @@ -using System; -using System.Diagnostics; -using System.Threading; -using Digipost.Api.Client.Common; -using Digipost.Api.Client.Common.Enums; -using Digipost.Api.Client.Common.Identify; -using Digipost.Api.Client.Common.Recipient; -using Digipost.Api.Client.ConcurrencyTest.Enums; -using Digipost.Api.Client.Resources.Content; -using Digipost.Api.Client.Send; - -namespace Digipost.Api.Client.ConcurrencyTest -{ - internal abstract class DigipostRunner - { - private readonly Lazy _client; - private readonly object _lock = new object(); - private byte[] _documentBytes; - private int _failedCalls; - private IIdentification _identification; - private int _itemsLeft; - private Message _message; - private int _successfulCalls; - public Stopwatch Stopwatch; - - protected DigipostRunner(ClientConfig clientConfig, string thumbprint, int numOfRuns) - { - _client = new Lazy(() => new DigipostClient(clientConfig, thumbprint)); - Stopwatch = new Stopwatch(); - _itemsLeft = numOfRuns + 1; //Fordi vi decrementer teller før return - } - - public DigipostClient Client => _client.Value; - - public int RunsLeft() - { - return Interlocked.Decrement(ref _itemsLeft); - } - - public abstract void Run(RequestType requestType); - - public IMessage GetMessage() - { - lock (_lock) - { - if (_message != null) return _message; - - var primaryDocument = new Document("document subject", "txt", GetDocumentBytes()); - var digitalRecipientWithFallbackPrint = new RecipientByNameAndAddress("Ola Nordmann", "0460", - "Oslo", "Collettsgate 68"); - _message = new Message(new Sender(1010), digitalRecipientWithFallbackPrint, primaryDocument); - } - - return _message; - } - - public IIdentification GetIdentification() - { - lock (_lock) - { - if (_identification != null) return _identification; - _identification = new Identification(new RecipientById(IdentificationType.PersonalIdentificationNumber, "01013300001")); - } - - return _identification; - } - - private byte[] GetDocumentBytes() - { - return _documentBytes ?? (_documentBytes = ContentResource.Hoveddokument.PlainText()); - } - - public async void Send(DigipostClient digipostClient, RequestType requestType) - { - try - { - switch (requestType) - { - case RequestType.Message: - await digipostClient.SendMessageAsync(GetMessage()).ConfigureAwait(false); - break; - case RequestType.Identify: - await digipostClient.IdentifyAsync(GetIdentification()).ConfigureAwait(false); - break; - default: - throw new ArgumentOutOfRangeException(nameof(requestType), requestType, null); - } - - Interlocked.Increment(ref _successfulCalls); - } - catch (Exception e) - { - Interlocked.Increment(ref _failedCalls); - Console.WriteLine("Request failed. Are you connected to VPN? Reason{0}. Inner: {1}", e.Message, - e.InnerException.Message); - Console.WriteLine(e.InnerException.InnerException); - } - - Console.Write("."); - } - - protected void DisplayTestResults() - { - var performanceAllWork = _successfulCalls / (Stopwatch.ElapsedMilliseconds / 1000d); - - Console.WriteLine(); - Console.WriteLine( - "Success:" + _successfulCalls + ", \n" + - "Failed:" + _failedCalls + " \n" + - "Duration:" + Stopwatch.ElapsedMilliseconds + " \n" + - "Performance full run:" + performanceAllWork.ToString("#.###") + " req/sec"); - } - } -} diff --git a/Digipost.Api.Client.ConcurrencyTest/Enums/ProcessingType.cs b/Digipost.Api.Client.ConcurrencyTest/Enums/ProcessingType.cs deleted file mode 100755 index 759ab790..00000000 --- a/Digipost.Api.Client.ConcurrencyTest/Enums/ProcessingType.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Digipost.Api.Client.ConcurrencyTest.Enums -{ - internal enum ProcessingType - { - Parallel, - Async - } -} diff --git a/Digipost.Api.Client.ConcurrencyTest/Enums/RequestType.cs b/Digipost.Api.Client.ConcurrencyTest/Enums/RequestType.cs deleted file mode 100755 index c8be575a..00000000 --- a/Digipost.Api.Client.ConcurrencyTest/Enums/RequestType.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Digipost.Api.Client.ConcurrencyTest.Enums -{ - internal enum RequestType - { - Message, - Identify - } -} diff --git a/Digipost.Api.Client.ConcurrencyTest/Initializer.cs b/Digipost.Api.Client.ConcurrencyTest/Initializer.cs deleted file mode 100755 index b5a58a6f..00000000 --- a/Digipost.Api.Client.ConcurrencyTest/Initializer.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using Digipost.Api.Client.Common; -using Digipost.Api.Client.ConcurrencyTest.Enums; -using Environment = Digipost.Api.Client.Common.Environment; - -namespace Digipost.Api.Client.ConcurrencyTest -{ - public class Initializer - { - private const ProcessingType ProcessingType = Enums.ProcessingType.Parallel; - private const RequestType RequestType = Enums.RequestType.Message; - private const string Thumbprint = "29 7e 44 24 f2 8d ed 2c 9a a7 3d 9b 22 7c 73 48 f1 8a 1b 9b"; - private const long SenderId = 106824802; //"779052"; - private const int DegreeOfParallelism = 4; - private const int NumberOfRequests = 100; - private const int ThreadsActive = 4; - - public static void Run() - { - Console.WriteLine("Starting program ..."); - Digipost(NumberOfRequests, ThreadsActive, ProcessingType); - } - - private static void Digipost(int numberOfRequests, int connectionLimit, ProcessingType processingType) - { - Console.WriteLine("Starting to send digipost: {0}, with requests: {1}, poolcount: {2}", processingType, - numberOfRequests, connectionLimit); - - var clientConfig = new ClientConfig(new Broker(SenderId), Environment.Production); - - switch (processingType) - { - case ProcessingType.Parallel: - new DigipostParalell(numberOfRequests, connectionLimit, DegreeOfParallelism, clientConfig, - Thumbprint).Run(RequestType); - break; - case ProcessingType.Async: - new DigipostAsync(numberOfRequests, connectionLimit, clientConfig, Thumbprint).Run(RequestType); - break; - } - } - } -} diff --git a/Digipost.Api.Client.ConcurrencyTest/Properties/AssemblyInfo.cs b/Digipost.Api.Client.ConcurrencyTest/Properties/AssemblyInfo.cs deleted file mode 100644 index a1eb5821..00000000 --- a/Digipost.Api.Client.ConcurrencyTest/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,5 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("Digipost.Api.Client.ConcurrencyTest")] -[assembly: ComVisible(false)] diff --git a/Digipost.Api.Client.ConcurrencyTest/WebGetAsync.cs b/Digipost.Api.Client.ConcurrencyTest/WebGetAsync.cs deleted file mode 100755 index f110bccd..00000000 --- a/Digipost.Api.Client.ConcurrencyTest/WebGetAsync.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System; -using System.Diagnostics; -using System.Net; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; - -namespace Digipost.Api.Client.ConcurrencyTest -{ - internal class WebGetAsync - { - private readonly int _defaultConnectionLimit; - private readonly int _numberOfRequests; - private readonly Stopwatch _stopwatch = Stopwatch.StartNew(); - private readonly object _syncLock = new object(); - private int _failedCalls; - private int _itemsLeft; - private int _successfulCalls; - - public WebGetAsync(int numberOfRequests, int defaultConnectionLimit) - { - _defaultConnectionLimit = defaultConnectionLimit; - _itemsLeft = numberOfRequests; - _numberOfRequests = numberOfRequests; - } - - private void DisplayTestResults() - { - _stopwatch.Stop(); - - Console.WriteLine("Success:" + _successfulCalls + " , Failed:" + _failedCalls + ", Duration:" + - _stopwatch.ElapsedMilliseconds + " Avg:" + - (_stopwatch.Elapsed.Seconds == 0 - ? _successfulCalls - : _successfulCalls / _stopwatch.Elapsed.Seconds) + " req/sec"); - } - - public void TestParallel() - { - ServicePointManager.DefaultConnectionLimit = _defaultConnectionLimit; - var httpClient = new HttpClient(); - - for (var i = 0; i < _numberOfRequests; i++) - { - Task.Run(() => { ProcessUrlAsync(httpClient); }); - } - } - - public void TestAsync() - { - ServicePointManager.DefaultConnectionLimit = _defaultConnectionLimit; - var httpClient = new HttpClient(); - - for (var i = 0; i < _numberOfRequests; i++) - { - ProcessUrlAsync(httpClient); - } - } - - private async void ProcessUrlAsync(HttpClient httpClient) - { - HttpResponseMessage httpResponse = null; - - try - { - //string URL = "http://vg.no"; - const string url = "http://10.16.0.125:3000/"; - //Console.WriteLine("AsyncGet to " + URL); - var getTask = httpClient.GetAsync(url); - httpResponse = await getTask.ConfigureAwait(false); - - Interlocked.Increment(ref _successfulCalls); - //Console.WriteLine("Success"); - } - catch (Exception) - { - Interlocked.Increment(ref _failedCalls); - //Console.WriteLine("Failed"); - } - finally - { - httpResponse?.Dispose(); - } - - lock (_syncLock) - { - _itemsLeft--; - if (_itemsLeft == 0) - { - DisplayTestResults(); - } - } - } - } -} diff --git a/Digipost.Api.Client.Docs/CertificateLoading.cs b/Digipost.Api.Client.Docs/CertificateLoading.cs index c85f52e0..da16afb2 100755 --- a/Digipost.Api.Client.Docs/CertificateLoading.cs +++ b/Digipost.Api.Client.Docs/CertificateLoading.cs @@ -23,7 +23,7 @@ public void LoadCertificateFrom() { var clientConfig = new ClientConfig(broker, Environment.Production); var businessCertificate = - new X509Certificate2( + X509CertificateLoader.LoadPkcs12FromFile( @"C:\Path\To\Certificate\Cert.p12", "secretPasswordProperlyInstalledAndLoaded", X509KeyStorageFlags.Exportable diff --git a/Digipost.Api.Client.Docs/Digipost.Api.Client.Docs.csproj b/Digipost.Api.Client.Docs/Digipost.Api.Client.Docs.csproj index bdc00263..69f9efc9 100644 --- a/Digipost.Api.Client.Docs/Digipost.Api.Client.Docs.csproj +++ b/Digipost.Api.Client.Docs/Digipost.Api.Client.Docs.csproj @@ -6,7 +6,7 @@ - net8.0 + net9.0 Digipost.Api.Client.Docs Digipost.Api.Client.Docs {1B5DB6E1-7363-4B6D-8565-CBF7E5C958DE} diff --git a/Digipost.Api.Client.Inbox.Tests/Digipost.Api.Client.Inbox.Tests.csproj b/Digipost.Api.Client.Inbox.Tests/Digipost.Api.Client.Inbox.Tests.csproj index 72f07d54..40e642a7 100644 --- a/Digipost.Api.Client.Inbox.Tests/Digipost.Api.Client.Inbox.Tests.csproj +++ b/Digipost.Api.Client.Inbox.Tests/Digipost.Api.Client.Inbox.Tests.csproj @@ -3,7 +3,7 @@ true ..\signingkey.snk - net8.0 + net9.0 Digipost.Api.Client.Inbox.Tests Digipost.Api.Client.Inbox.Tests {37678527-9988-46E8-A5D6-8F9533058F67} diff --git a/Digipost.Api.Client.Resources/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Resources/Properties/AssemblyInfo.cs index e8afc4e1..8894626d 100644 --- a/Digipost.Api.Client.Resources/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Resources/Properties/AssemblyInfo.cs @@ -7,7 +7,6 @@ [assembly: InternalsVisibleTo("Digipost.Api.Client,PublicKey=0024000004800000940000000602000000240000525341310004000001000100f71f491a4cebe0a3d18a61744f92edfca908e4d756aa1140ebceeffb1fc4aa2e7bbe4d672067e2c0a3afd8c4511ef84cc1267ba04d8041e24d96c3d93e268fd69abc712fa81bcbae729f1c0524eef0254705bb2fcf1ffd43a647e9306b93e8dd7afd094a61ca2761fe87c20fdda758ad55d2c5ba6ad6edc9493309a355e51f99")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Domain,PublicKey=0024000004800000940000000602000000240000525341310004000001000100f71f491a4cebe0a3d18a61744f92edfca908e4d756aa1140ebceeffb1fc4aa2e7bbe4d672067e2c0a3afd8c4511ef84cc1267ba04d8041e24d96c3d93e268fd69abc712fa81bcbae729f1c0524eef0254705bb2fcf1ffd43a647e9306b93e8dd7afd094a61ca2761fe87c20fdda758ad55d2c5ba6ad6edc9493309a355e51f99")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100f71f491a4cebe0a3d18a61744f92edfca908e4d756aa1140ebceeffb1fc4aa2e7bbe4d672067e2c0a3afd8c4511ef84cc1267ba04d8041e24d96c3d93e268fd69abc712fa81bcbae729f1c0524eef0254705bb2fcf1ffd43a647e9306b93e8dd7afd094a61ca2761fe87c20fdda758ad55d2c5ba6ad6edc9493309a355e51f99")] -[assembly: InternalsVisibleTo("Digipost.Api.Client.ConcurrencyTest,PublicKey=0024000004800000940000000602000000240000525341310004000001000100f71f491a4cebe0a3d18a61744f92edfca908e4d756aa1140ebceeffb1fc4aa2e7bbe4d672067e2c0a3afd8c4511ef84cc1267ba04d8041e24d96c3d93e268fd69abc712fa81bcbae729f1c0524eef0254705bb2fcf1ffd43a647e9306b93e8dd7afd094a61ca2761fe87c20fdda758ad55d2c5ba6ad6edc9493309a355e51f99")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Common,PublicKey=0024000004800000940000000602000000240000525341310004000001000100f71f491a4cebe0a3d18a61744f92edfca908e4d756aa1140ebceeffb1fc4aa2e7bbe4d672067e2c0a3afd8c4511ef84cc1267ba04d8041e24d96c3d93e268fd69abc712fa81bcbae729f1c0524eef0254705bb2fcf1ffd43a647e9306b93e8dd7afd094a61ca2761fe87c20fdda758ad55d2c5ba6ad6edc9493309a355e51f99")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Inbox.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100f71f491a4cebe0a3d18a61744f92edfca908e4d756aa1140ebceeffb1fc4aa2e7bbe4d672067e2c0a3afd8c4511ef84cc1267ba04d8041e24d96c3d93e268fd69abc712fa81bcbae729f1c0524eef0254705bb2fcf1ffd43a647e9306b93e8dd7afd094a61ca2761fe87c20fdda758ad55d2c5ba6ad6edc9493309a355e51f99")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Send.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100f71f491a4cebe0a3d18a61744f92edfca908e4d756aa1140ebceeffb1fc4aa2e7bbe4d672067e2c0a3afd8c4511ef84cc1267ba04d8041e24d96c3d93e268fd69abc712fa81bcbae729f1c0524eef0254705bb2fcf1ffd43a647e9306b93e8dd7afd094a61ca2761fe87c20fdda758ad55d2c5ba6ad6edc9493309a355e51f99")] diff --git a/Digipost.Api.Client.Send.Tests/Digipost.Api.Client.Send.Tests.csproj b/Digipost.Api.Client.Send.Tests/Digipost.Api.Client.Send.Tests.csproj index 6d86d8d9..ffed3924 100644 --- a/Digipost.Api.Client.Send.Tests/Digipost.Api.Client.Send.Tests.csproj +++ b/Digipost.Api.Client.Send.Tests/Digipost.Api.Client.Send.Tests.csproj @@ -3,7 +3,7 @@ true ..\signingkey.snk - net8.0 + net9.0 Digipost.Api.Client.Send.Tests Digipost.Api.Client.Send.Tests {57566E3A-1DE1-4020-B1B3-8AEDD79ED4AE} diff --git a/Digipost.Api.Client.Send.Tests/DocumentTests.cs b/Digipost.Api.Client.Send.Tests/DocumentTests.cs index 4aeed29c..b631db35 100755 --- a/Digipost.Api.Client.Send.Tests/DocumentTests.cs +++ b/Digipost.Api.Client.Send.Tests/DocumentTests.cs @@ -88,7 +88,7 @@ private static byte[] BytesFromStream(Stream fileStream) { if (fileStream == null) return null; var bytes = new byte[fileStream.Length]; - fileStream.Read(bytes, 0, bytes.Length); + fileStream.ReadExactly(bytes, 0, bytes.Length); return bytes; } } diff --git a/Digipost.Api.Client.Tests/Digipost.Api.Client.Tests.csproj b/Digipost.Api.Client.Tests/Digipost.Api.Client.Tests.csproj index 5f80fa4b..7d81ea39 100644 --- a/Digipost.Api.Client.Tests/Digipost.Api.Client.Tests.csproj +++ b/Digipost.Api.Client.Tests/Digipost.Api.Client.Tests.csproj @@ -3,7 +3,7 @@ true ..\signingkey.snk - net8.0 + net9.0 Digipost.Api.Client.Tests Digipost.Api.Client.Tests {966A701B-7E91-4C41-BA28-B5C5E800E63D} diff --git a/Digipost.Api.Client/Digipost.Api.Client.csproj b/Digipost.Api.Client/Digipost.Api.Client.csproj index 72752773..001936f9 100644 --- a/Digipost.Api.Client/Digipost.Api.Client.csproj +++ b/Digipost.Api.Client/Digipost.Api.Client.csproj @@ -42,7 +42,7 @@ - + diff --git a/Directory.Build.props b/Directory.Build.props index bff8b9b1..34ea1130 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,13 +1,13 @@ - net8.0 + net9.0 0.0.0.0 0.0.0.0 Digipost AS - Posten Norge AS - Copyright © 2024 Posten Norge AS + Posten Bring AS + Copyright © 2025 Posten Bring AS https://github.com/digipost/digipost-api-client-dotnet/ false diff --git a/SharedAssemblyInfo.cs b/SharedAssemblyInfo.cs index 54b8cf18..20dd073c 100644 --- a/SharedAssemblyInfo.cs +++ b/SharedAssemblyInfo.cs @@ -8,4 +8,4 @@ [assembly: AssemblyFileVersion("14.0.0")] [assembly: AssemblyInformationalVersion("14.0.0")] [assembly: AssemblyCulture("")] -[assembly: AssemblyCopyright("© 2015-2024 Digipost AS")] +[assembly: AssemblyCopyright("© 2015-2025 Digipost AS")] diff --git a/digipost-api-client.sln b/digipost-api-client.sln index de11310e..d72c5f39 100755 --- a/digipost-api-client.sln +++ b/digipost-api-client.sln @@ -6,8 +6,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Digipost.Api.Client.Common" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Digipost.Api.Client.Common.Tests", "Digipost.Api.Client.Common.Tests\Digipost.Api.Client.Common.Tests.csproj", "{BC85F48B-9584-41F7-BBE8-EBBEC1EEC7E8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Digipost.Api.Client.ConcurrencyTest", "Digipost.Api.Client.ConcurrencyTest\Digipost.Api.Client.ConcurrencyTest.csproj", "{7B5E5062-98E5-4312-9A82-28DF530BF5FB}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Digipost.Api.Client.Docs", "Digipost.Api.Client.Docs\Digipost.Api.Client.Docs.csproj", "{1B5DB6E1-7363-4B6D-8565-CBF7E5C958DE}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Digipost.Api.Client.Archive", "Digipost.Api.Client.Archive\Digipost.Api.Client.Archive.csproj", "{1BEC9279-D6C5-4C26-B926-13081F1C3DBC}" diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index f8dd9290..dbd5c22d 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -17,8 +17,8 @@ GEM addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) base64 (0.2.0) - benchmark (0.4.0) - bigdecimal (3.1.9) + benchmark (0.4.1) + bigdecimal (3.2.2) coffee-script (2.4.1) coffee-script-source execjs @@ -27,12 +27,12 @@ GEM commonmarker (0.23.11) concurrent-ruby (1.3.5) connection_pool (2.5.3) - csv (3.3.4) + csv (3.3.5) dnsruby (1.72.4) base64 (~> 0.2.0) logger (~> 1.6.5) simpleidn (~> 0.2.1) - drb (2.2.1) + drb (2.2.3) em-websocket (0.5.3) eventmachine (>= 0.12.9) http_parser.rb (~> 0) @@ -40,11 +40,11 @@ GEM ffi (>= 1.15.0) eventmachine (1.2.7) execjs (2.10.0) - faraday (2.13.1) + faraday (2.13.4) faraday-net_http (>= 2.0, < 3.5) json logger - faraday-net_http (3.4.0) + faraday-net_http (3.4.1) net-http (>= 0.5.0) ffi (1.17.2-aarch64-linux-gnu) ffi (1.17.2-aarch64-linux-musl) @@ -224,7 +224,7 @@ GEM gemoji (>= 3, < 5) html-pipeline (~> 2.2) jekyll (>= 3.0, < 5.0) - json (2.12.0) + json (2.13.2) kramdown (2.4.0) rexml kramdown-parser-gfm (1.1.0) @@ -242,21 +242,21 @@ GEM minitest (5.25.5) net-http (0.6.0) uri - nokogiri (1.18.8-aarch64-linux-gnu) + nokogiri (1.18.9-aarch64-linux-gnu) racc (~> 1.4) - nokogiri (1.18.8-aarch64-linux-musl) + nokogiri (1.18.9-aarch64-linux-musl) racc (~> 1.4) - nokogiri (1.18.8-arm-linux-gnu) + nokogiri (1.18.9-arm-linux-gnu) racc (~> 1.4) - nokogiri (1.18.8-arm-linux-musl) + nokogiri (1.18.9-arm-linux-musl) racc (~> 1.4) - nokogiri (1.18.8-arm64-darwin) + nokogiri (1.18.9-arm64-darwin) racc (~> 1.4) - nokogiri (1.18.8-x86_64-darwin) + nokogiri (1.18.9-x86_64-darwin) racc (~> 1.4) - nokogiri (1.18.8-x86_64-linux-gnu) + nokogiri (1.18.9-x86_64-linux-gnu) racc (~> 1.4) - nokogiri (1.18.8-x86_64-linux-musl) + nokogiri (1.18.9-x86_64-linux-musl) racc (~> 1.4) octokit (4.25.1) faraday (>= 1, < 3)