GlobalShared.CommonUtils.Library 4.0.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package GlobalShared.CommonUtils.Library --version 4.0.7                
NuGet\Install-Package GlobalShared.CommonUtils.Library -Version 4.0.7                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GlobalShared.CommonUtils.Library" Version="4.0.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GlobalShared.CommonUtils.Library --version 4.0.7                
#r "nuget: GlobalShared.CommonUtils.Library, 4.0.7"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GlobalShared.CommonUtils.Library as a Cake Addin
#addin nuget:?package=GlobalShared.CommonUtils.Library&version=4.0.7

// Install GlobalShared.CommonUtils.Library as a Cake Tool
#tool nuget:?package=GlobalShared.CommonUtils.Library&version=4.0.7                

Utils Class :- The Utils class is a helper utility that provides commonly used functions for various operations, including string manipulation, data type conversion, configuration retrieval, encryption, and response mapping. It offers methods for quoting strings and dates, checking for null or blank values, and converting strings to different data types such as integers, booleans, dates, decimals, floats, and longs with default values. Additionally, it retrieves application settings from appsettings.json and the configuration manager, ensures security through SHA-256 hashing,and formats data, such as currency values and date conversions. The class also standardizes response handling by creating structured response objects with status, descriptions, and error messages.

RestExtension class:- The RestExtension class is a static utility that extends HttpClient, providing various asynchronous methods for making HTTP requests such as GET, POST, and PATCH. It simplifies API calls by handling request creation, adding headers dynamically, and managing response deserialization. Each method includes a cancellation token to prevent long-running requests from blocking execution. Error handling is built-in, returning a standardized ApiResponse object with status codes and messages. The class supports different response formats, including JSON objects, lists, and binary data (e.g., PDFs).Potential improvements include using strongly typed models for deserialization, better exception logging, and optimized header management with AuthenticationHeaderValue.

Logs class:- The Logs class is a utility for logging different types of events, such as security incidents (SIEMLogs), exceptions (ExceptionLogs), and API requests (APIRequestLogs). Each method dynamically creates a log file based on the method name and date, ensuring the necessary directories exist before writing logs. It also sets access permissions for the log files and records log entries with timestamps in a structured format. This class helps in monitoring, debugging, and auditing application activity by maintaining detailed logs.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.8 74 3/10/2025
4.0.7 156 3/8/2025
4.0.6 171 3/8/2025
4.0.5 163 3/8/2025
4.0.4 211 3/5/2025
4.0.3 193 3/5/2025
4.0.2 198 3/5/2025
4.0.1 195 3/5/2025
4.0.0 198 3/5/2025
3.0.0 104 2/11/2025
2.0.0 101 2/10/2025
1.0.0 106 2/10/2025