General.Backend.Shared
2.0.2
dotnet add package General.Backend.Shared --version 2.0.2
NuGet\Install-Package General.Backend.Shared -Version 2.0.2
<PackageReference Include="General.Backend.Shared" Version="2.0.2" />
<PackageVersion Include="General.Backend.Shared" Version="2.0.2" />
<PackageReference Include="General.Backend.Shared" />
paket add General.Backend.Shared --version 2.0.2
#r "nuget: General.Backend.Shared, 2.0.2"
#:package General.Backend.Shared@2.0.2
#addin nuget:?package=General.Backend.Shared&version=2.0.2
#tool nuget:?package=General.Backend.Shared&version=2.0.2
This project contains elements common to most backend projects. Error handling, robust request handling, standardized requests and responses, a generic interface to implement the repository pattern and a generic class for Core handling.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Polly (>= 8.7.0)
- System.Security.Cryptography.Xml (>= 10.0.10)
- System.ServiceModel.Http (>= 10.0.652802)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on General.Backend.Shared:
| Package | Downloads |
|---|---|
|
General.Backend.RepositoryPattern
The GenericRepository abstract class implements a generic data repository with the most commonly used methods for creating, updating and retrieving data. |
|
|
General.Frontend.Shared
This package contains common elements for most FrontEnd projects with Blazor WebAssembly and Radzen. It includes a generic interface to implement the repository sponsor, an abstract class to implement it and 2 classes to handle generic grids. |
GitHub repositories
This package is not used by any popular GitHub repositories.
- Replace IMapper dependency with abstract MapToResponse, MapListToResponse, and MapToEntity
methods in GenericCore, removing the AutoMapper package entirely
- Fix bug where GetAllAsync/GetByFilterAsync/GetByDynamicFilterAsync mapped the full tuple
instead of result.PageRecords
- ErrorHandler: prevent internal exception details from leaking to clients; fix structured
logging placeholders; return 400 BadRequest for validation errors instead of 500
- ResilientRequestHandler: set ExceptionsAllowedBeforeBreaking default to 3 (was 0, broke Polly)
- ResponseService: change records default from 1 to 0
- GenericCore.UpdateAsync: fix wrong service name in validation error ("AddAsync" -> "UpdateAsync")
- GenericCore.AddAsync: remove redundant new T() instantiation
- Bump dependencies to .NET 10 targets
- (16/07/2026) Refactor GenericCore to exclude ILogger and ErrorHandler to allow implementation of Global Error Handling and logging in the host project,
and to allow for more flexible dependency injection. Add new static methods to ResponseService to allow for more flexible response handling,
including the ability to return custom responses and status codes.
Delete ErrorHandler class and move its functionality to the host project.
-(17/07/2026) Refactor include cancelation token in all async methods.
-(18/07/2026) Added new IGenericCore interface to implement GenericCore in the host project, allowing for more flexible dependency injection and customization of the core functionality.