Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

nuget.org : withunity.tools

WithUnity.Tools Make C# nearer a Functional language by allowing method declaration to be much more honest and adding fluent Validation. We intend to add Task templates to provide appropriate parallel processing. Although C# Tasks are fine for the job Using of the templates would allow cross cutting logging and other concerns. The two main features to make method declaration more honest. Use the MayBe structure when there is an expectation that null maybe a valid reference as a parameter. WHen there is a possibility that a method may fail, use the Result<T> classe to return either the valid object or the relevant error message. The backlog has a mission to add the option to use error codes to allow localized of error messages, where these messages need to be publically displayed. There is also a Log class that can be initialized to provide automatic logging from the Result class. With Verbose successes and Error level failures failures and informational notes. There is also the ValueProperty to create readonly properties. Used to add validation to individual properties and to make using the ValueProperty class transparent to the user. There are also a few implementation of a ValueProperty showing how to validation should be implemeted in the constructor and should throw InvalidCastException when invalid data is passed in. ValueProperty can be implicitly used as the underlying type, this is to make them just as usable as the underlying data type. Result uses some Reflexive tools to log from where errors occur in the Logging. The Logging and the Reflexive tools are independent of using the Result validation mechanism.

Registry - Homepage - JSON
purl: pkg:nuget/withunity.tools
Keywords: Fluent, Result, MayBe, Logging, Tools, ValueProperty
License:
Latest release: over 2 years ago
First release: over 124 years ago
Downloads: 2,114 total
Last synced: 10 days ago

    Loading...
    Readme
    Loading...