From a1928b8890902e73a9cc39a0324ef54771b60431 Mon Sep 17 00:00:00 2001 From: "Eric Sibly [chullybun]" Date: Wed, 17 Apr 2024 15:40:01 -0700 Subject: [PATCH] CoreEx latest. (#53) --- CHANGELOG.md | 4 ++++ Common.targets | 2 +- src/DbEx.MySql/DbEx.MySql.csproj | 2 +- src/DbEx.Postgres/DbEx.Postgres.csproj | 2 +- src/DbEx.SqlServer/DbEx.SqlServer.csproj | 2 +- src/DbEx/DbEx.csproj | 2 +- tests/DbEx.Test/SqlServerOutboxTest.cs | 12 ++++++++---- 7 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87ae67d..6556b58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Represents the **NuGet** versions. +## v2.5.2 +- *Fixed:* Updated `CoreEx` to version `3.18.0`. + - Includes removal of `Azure.Identity` dependency; related to `https://github.com/advisories/GHSA-wvxc-855f-jvrv`. + ## v2.5.1 - *Fixed:* Updated `CoreEx` to version `3.15.0`. - *Fixed* Simplify event outbox C# code-generation templates for primary constructor usage. diff --git a/Common.targets b/Common.targets index a0bc043..520b159 100644 --- a/Common.targets +++ b/Common.targets @@ -1,6 +1,6 @@ - 2.5.1 + 2.5.2 preview Avanade Avanade diff --git a/src/DbEx.MySql/DbEx.MySql.csproj b/src/DbEx.MySql/DbEx.MySql.csproj index 610385f..992a74e 100644 --- a/src/DbEx.MySql/DbEx.MySql.csproj +++ b/src/DbEx.MySql/DbEx.MySql.csproj @@ -41,7 +41,7 @@ - + diff --git a/src/DbEx.Postgres/DbEx.Postgres.csproj b/src/DbEx.Postgres/DbEx.Postgres.csproj index 5644f2b..4ad0144 100644 --- a/src/DbEx.Postgres/DbEx.Postgres.csproj +++ b/src/DbEx.Postgres/DbEx.Postgres.csproj @@ -42,7 +42,7 @@ - + diff --git a/src/DbEx.SqlServer/DbEx.SqlServer.csproj b/src/DbEx.SqlServer/DbEx.SqlServer.csproj index d6265d0..6e15deb 100644 --- a/src/DbEx.SqlServer/DbEx.SqlServer.csproj +++ b/src/DbEx.SqlServer/DbEx.SqlServer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/DbEx/DbEx.csproj b/src/DbEx/DbEx.csproj index b997d4f..9532996 100644 --- a/src/DbEx/DbEx.csproj +++ b/src/DbEx/DbEx.csproj @@ -20,7 +20,7 @@ - + diff --git a/tests/DbEx.Test/SqlServerOutboxTest.cs b/tests/DbEx.Test/SqlServerOutboxTest.cs index 67e7e5d..834f496 100644 --- a/tests/DbEx.Test/SqlServerOutboxTest.cs +++ b/tests/DbEx.Test/SqlServerOutboxTest.cs @@ -246,10 +246,10 @@ public async Task B120_EnqueueDequeue_PrimarySender_EventSendException() eoe.SetPrimaryEventSender(new TestSenderFail()); await eoe.SendAsync(new EventSendData[] { - new EventSendData { Id = "1", PartitionKey = null, Destination = "A" }, - new EventSendData { Id = "2", PartitionKey = null, Destination = "B" }, - new EventSendData { Id = "3", PartitionKey = null, Destination = "A" }, - new EventSendData { Id = "4", PartitionKey = null, Destination = "B" } + new() { Id = "1", PartitionKey = null, Destination = "A" }, + new() { Id = "2", PartitionKey = null, Destination = "B" }, + new() { Id = "3", PartitionKey = null, Destination = "A" }, + new() { Id = "4", PartitionKey = null, Destination = "B" } }).ConfigureAwait(false); var ims = new InMemorySender(); @@ -265,11 +265,15 @@ public async Task B120_EnqueueDequeue_PrimarySender_EventSendException() private class TestSender : IEventSender { + public event EventHandler AfterSend; + public Task SendAsync(IEnumerable events, CancellationToken cancellationToken = default) => throw new NotImplementedException(); } private class TestSenderFail : IEventSender { + public event EventHandler AfterSend; + public Task SendAsync(IEnumerable events, CancellationToken cancellationToken = default) { var elist = events.ToArray();