Dsr.Architecture.TryCatch
1.0.0
dotnet add package Dsr.Architecture.TryCatch --version 1.0.0
NuGet\Install-Package Dsr.Architecture.TryCatch -Version 1.0.0
<PackageReference Include="Dsr.Architecture.TryCatch" Version="1.0.0" />
<PackageVersion Include="Dsr.Architecture.TryCatch" Version="1.0.0" />
<PackageReference Include="Dsr.Architecture.TryCatch" />
paket add Dsr.Architecture.TryCatch --version 1.0.0
#r "nuget: Dsr.Architecture.TryCatch, 1.0.0"
#:package Dsr.Architecture.TryCatch@1.0.0
#addin nuget:?package=Dsr.Architecture.TryCatch&version=1.0.0
#tool nuget:?package=Dsr.Architecture.TryCatch&version=1.0.0
DSR.Architecture.TryCatch
This project provides a fluent and expressive way to handle exceptions in C#. It offers a TryCatch
utility that allows for chaining Try
, Catch
, and Finally
blocks in a declarative style, improving code readability and maintainability.
Features
- Fluent API: A simple and intuitive API for handling exceptions.
- Asynchronous Support: Works seamlessly with asynchronous operations.
- Generic and Non-Generic Versions: Supports methods with and without return values.
Usage
Use this project to simplify exception handling and make your code more robust and readable.
Installation
Once published, install via NuGet:
dotnet add package DSR.Architecture.TryCatch
Contributing
Contributions are welcome! Please submit issues or pull requests via GitHub.
License
This project is licensed under the MIT License. See the LICENSE for details.
Authors
- Jonathan Jimenez
Tags
utility, exception-handling, try-catch, fluent-api, architecture, modular, enterprise, dsr-architecture
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Dsr.Architecture.TryCatch:
Package | Downloads |
---|---|
Dsr.Architecture.Infrastructure.Persistence.EntityFramework
EFCore persistence library for DSR.Architecture. Provides repository implementations and data access patterns for EFCore, enabling scalable, modular, and testable enterprise solutions as part of the DSR.Architecture ecosystem. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.0.0 | 117 | 7/17/2025 |