Skip to content

OptimisticVsPessimisticLocking: retarget net10.0, fix Optimicstic typo in two action names - #2125

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/123686-dotnet-optimistic-locking-vs-pessimistic-locking
Open

OptimisticVsPessimisticLocking: retarget net10.0, fix Optimicstic typo in two action names#2125
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/123686-dotnet-optimistic-locking-vs-pessimistic-locking

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets dotnet-efcore/OptimisticVsPessimisticLocking to net10.0 and fixes a misspelling in two controller action names.

Retarget

  • OptimisticVsPessimisticLocking.csproj and OptimisticVsPessimisticLocking.LiveTests.csproj: net8.0 -> net10.0.
  • Package pins unchanged. Testcontainers stays at 3.10.0 on purpose: 4.x drops IWaitForContainerOS.UntilPortIsAvailable, which Program.cs uses in its wait strategy, and marks the parameterless ContainerBuilder() constructor obsolete.

Typo fix

  • AssignWorkItemWithAutomaticOptimicsticLockAsync -> AssignWorkItemWithAutomaticOptimisticLockAsync
  • AssignWorkItemWithManualOptimicsticLockAsync -> AssignWorkItemWithManualOptimisticLockAsync

Routes (/workItem/assign-optimistic-row-version, /workItem/assign-manual-optimistic-concurrency-token) are unchanged, so the live tests and the article's request examples are unaffected.

Verification

  • dotnet build OptimisticVsPessimisticLocking.sln -c Release on SDK 10.0.302: Build succeeded, 0 errors, 0 CS warnings.
  • The 20 build warnings are all NuGet audit advisories (NU1901/NU1902/NU1903) on pre-existing transitive packages, surfaced because net10.0 defaults NuGetAuditMode to all: SSH.NET 2023.0.0 via Testcontainers 3.10.0, and Azure.Identity 1.10.3 / Microsoft.Identity.Client 4.56.0 via Microsoft.EntityFrameworkCore.SqlServer 8.0.10 -> Microsoft.Data.SqlClient 5.1.5. No source change in this PR introduces them.
  • dotnet test needs Docker (Testcontainers starts a real SQL Server container from Program.cs), which the machine this was prepared on does not have. This folder is listed in .github/ci-skip-folders.txt for that same reason, so PR CI does not build or test it either.

…o in two action names

Retarget the web app and the live-test project from net8.0 to net10.0. Package
pins are unchanged: Testcontainers stays at 3.10.0 because 4.x removes
IWaitForContainerOS.UntilPortIsAvailable and obsoletes the parameterless
ContainerBuilder this sample uses.

Correct the misspelling in the two optimistic-locking action names:
AssignWorkItemWithAutomaticOptimicsticLockAsync and
AssignWorkItemWithManualOptimicsticLockAsync become
AssignWorkItemWithAutomaticOptimisticLockAsync and
AssignWorkItemWithManualOptimisticLockAsync. Routes are unaffected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant