GenericServices.StatusGeneric 1.1.0

A support library to provide a common status handling for my projects.

Install-Package GenericServices.StatusGeneric -Version 1.1.0
dotnet add package GenericServices.StatusGeneric --version 1.1.0
<PackageReference Include="GenericServices.StatusGeneric" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GenericServices.StatusGeneric --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

GenericServices.StatusGeneric

This provides a way to return the status of a method/class that you run. It contains two main things

  1. A IReadOnlyList of Errors, which may be empty. If the list is empty, then the IsValid property of the status will be true.
  2. A Message which can be set by you (default value is "Success"), but if it has any errors the Message returns "Failed with nn errors".
  3. The IStatusGeneric&lt;T&gt; version will return a Result which you can set, but returns default(T) if there are errors.

There are various methods to add errors to the Errors list, and a way to combine statuses.

GenericServices.StatusGeneric

This provides a way to return the status of a method/class that you run. It contains two main things

  1. A IReadOnlyList of Errors, which may be empty. If the list is empty, then the IsValid property of the status will be true.
  2. A Message which can be set by you (default value is "Success"), but if it has any errors the Message returns "Failed with nn errors".
  3. The IStatusGeneric&lt;T&gt; version will return a Result which you can set, but returns default(T) if there are errors.

There are various methods to add errors to the Errors list, and a way to combine statuses.

Release Notes

- Updated to provide needed features for GenericBizRunner
     - Added some interfaces and made Message read/write

Showing the top 2 GitHub repositories that depend on GenericServices.StatusGeneric:

Repository Stars
JonPSmith/EfCore.GenericServices
A library to help you quickly code CRUD accesses for a web/mobile/desktop application using EF Core.
JonPSmith/EfCore.GenericBizRunner
Library to run business logic when using Entity Framework Core for database accesses

Read more about the GitHub Usage information on our documentation.

Version History

Version Downloads Last updated
1.1.0 860 1/25/2020
1.0.1 540 1/25/2020
1.0.0 454 11/27/2019