UNLEIN.Utilities
2.0.9
dotnet add package UNLEIN.Utilities --version 2.0.9
NuGet\Install-Package UNLEIN.Utilities -Version 2.0.9
<PackageReference Include="UNLEIN.Utilities" Version="2.0.9" />
paket add UNLEIN.Utilities --version 2.0.9
#r "nuget: UNLEIN.Utilities, 2.0.9"
// Install UNLEIN.Utilities as a Cake Addin #addin nuget:?package=UNLEIN.Utilities&version=2.0.9 // Install UNLEIN.Utilities as a Cake Tool #tool nuget:?package=UNLEIN.Utilities&version=2.0.9
UNLEIN® Utilities - C# Package
Overview
The UNLEIN® Utilities package is a comprehensive collection of ready-to-use methods designed to improve your C# applications. It simplifies tasks like generating hash values (both one-way and two-way), managing logging, handling file uploads, making API calls, and performing database operations. Whether you're building a simple app or a complex enterprise system, this package offers optimized, easy-to-use solutions.
Features
- Hash Generation:
- One-way hash values.
- Two-way hash values (with key for encryption/decryption).
- Hash generation for email subscriptions and unsubscribe tokens.
- File Handling:
- Get file details before upload.
- Generate Base64 string data from file before upload.
- Easy file upload with real-time renaming feature.
- Upload base64 string files.
- String Manipulation:
- SafeReplace method for precise find and replace operations.
- Shuffle characters in a string.
- Between String extension for extracting or removing substrings.
- Database Operations:
- Fast database connections for quick data retrieval.
- Query and query list methods for dynamic data binding.
- Bulk insert and insert queries.
- Support for complex data types and stored procedures.
- Logging:
- Simple, lightweight logging functionality.
- Auto logging for API calls.
- Supports
.NET
platforms above version 6.0. - Manage log files with "Rolling Interval" functionality.
- API Calls:
- Prebuilt methods for making GET, POST, PUT, PATCH, and DELETE requests.
- Automatic API request logging.
- Cookie Manager:
- Get, save, update, and delete cookies programmatically.
Official team
Program is Developed and Maintained By UNLEIN® Private Limited
Usage
Logging
To start using the logging functionality, include the UNLEIN.Utilities.Log
namespace and configure your logger:
using UNLEIN.Utilities.Log;
var logger = new LoggingConfig()
.WriteFile("logs/log.txt", RollingInterval.Hour)
.Start();
Log.Info("Hey");
//Api Callings
var get = await Api.GetAsync("todos/1");
var post = await Api.PostAsync("posts", data);
//You can also use PUT, PATCH, and DELETE requests in the same way.
//To enable API logging, configure the following
//Auto Logging for API
Api.ApiLog.IsApiLog = true;
Api.ApiLog.IncBaseUrl = true;
Api.ApiLog.IncRequest = true;
Api.ApiLog.FilePath = "logs/apilog.txt";
Api._BaseUrl = "https://example.com/";
Change Logs
- [28.11.2024 2.0.8/9]:
- [NEW]: Official Logo Added of unlein.utilites package
- [28.11.2024 2.0.7]:
- [NEW]: Api Callings Added, Now you don't need to write Api Calling code every time, just use most optimized, fast, very easy to use with auto logging feature of api callings, prebuilt methods from unlein.Utilities.
- [20.11.2024 2.0.6]:
- [NEW]: Added Logging functionality. It is easy to set up, has a clean API, and runs on all .NET platforms above 6.0. While it's useful even in the simplest applications, it's much lightweight and very simple to use, also manage log files with "Rolling Interval" functionality.
- [16.11.2024 2.0.5]:
- [NEW]: Optimized and Improvements
- [15.11.2024 2.0.4]:
- [NEW]: String Extension Added for Get/Remove Between values from string
- [15.11.2024 2.0.3]:
- [NEW]: Query and QueryList TWO methods added for select and bind dynamically data into model and list model
- [14.11.2024 2.0.2]:
- [NEW]: Optimized and Improvements
- [07.11.2024 2.0.1]:
- [NEW]: Bulk Insert and Insert Queries Added
- [23.10.2024 2.0.0]:
- [NEW]: Now Make Database Connections for Retrive fast data
- [15.09.2024 1.0.22]:
- [NEW]: Added Cookie Manager for Get/Save/Update/Delete Cookie From Code
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.AspNetCore.Http.Features (>= 5.0.17)
- Newtonsoft.Json (>= 13.0.3)
- System.Data.SqlClient (>= 4.8.6)
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 |
---|---|---|
2.0.9 | 95 | 11/29/2024 |
2.0.8 | 87 | 11/29/2024 |
2.0.7 | 87 | 11/29/2024 |
2.0.6 | 134 | 11/20/2024 |
2.0.5 | 87 | 11/16/2024 |
2.0.4 | 97 | 11/15/2024 |
2.0.3 | 87 | 11/15/2024 |
2.0.2 | 88 | 11/14/2024 |
2.0.1 | 99 | 11/7/2024 |
2.0.0 | 101 | 10/23/2024 |
1.0.22 | 128 | 9/15/2024 |
1.0.21 | 128 | 5/20/2024 |
1.0.20 | 193 | 12/11/2023 |
1.0.19 | 201 | 10/16/2023 |
1.0.18 | 177 | 10/14/2023 |
1.0.17 | 153 | 10/14/2023 |
1.0.16 | 136 | 10/14/2023 |
1.0.15 | 125 | 10/5/2023 |
1.0.14 | 195 | 8/6/2023 |
1.0.13 | 161 | 8/6/2023 |
1.0.12 | 170 | 7/20/2023 |
1.0.11 | 199 | 6/10/2023 |
1.0.10 | 179 | 6/10/2023 |
1.0.9 | 173 | 5/21/2023 |
1.0.8 | 158 | 5/14/2023 |
1.0.7 | 148 | 5/13/2023 |
1.0.6 | 168 | 5/8/2023 |
1.0.5 | 183 | 5/7/2023 |
1.0.4 | 169 | 5/7/2023 |
- [NEW] Api Callings Added, Now you don't need to write Api Calling code every time, just use most optimized, fast, very easy to use with auto logging feature of api callings, prebuilt methods from unlein.Utilities