Crowley.LoadIQCommon
1.0.6
dotnet add package Crowley.LoadIQCommon --version 1.0.6
NuGet\Install-Package Crowley.LoadIQCommon -Version 1.0.6
<PackageReference Include="Crowley.LoadIQCommon" Version="1.0.6" />
<PackageVersion Include="Crowley.LoadIQCommon" Version="1.0.6" />
<PackageReference Include="Crowley.LoadIQCommon" />
paket add Crowley.LoadIQCommon --version 1.0.6
#r "nuget: Crowley.LoadIQCommon, 1.0.6"
#:package Crowley.LoadIQCommon@1.0.6
#addin nuget:?package=Crowley.LoadIQCommon&version=1.0.6
#tool nuget:?package=Crowley.LoadIQCommon&version=1.0.6
LogiBCommon
A comprehensive common utilities library for LogiB applications, providing authentication, conversion, cryptography, email, Firebase notifications, PDF generation, SMS, and database connectivity helpers.
Features
- Authentication Helper: JWT token validation, custom token handling, and authentication middleware
- Conversion Helper: Unit conversion for weight, volume, distance, and timezone handling
- Cryptography Helper: Encryption and decryption utilities
- Email Helper: SMTP email sending capabilities
- Firebase Notification: Firebase Cloud Messaging integration
- PDF Helper: PDF generation and manipulation utilities
- SMS Helper: SMS sending via AWS SNS
- Database Services: PostgreSQL connection management
Installation
Install the package via NuGet Package Manager:
dotnet add package Crowley.LogiBCommon
Or via Package Manager Console:
Install-Package Crowley.LogiBCommon
Requirements
- .NET 6.0 or later
Usage
Authentication
Configure authentication middleware in your Startup.cs or Program.cs:
app.UseMiddleware<AuthenticationMiddleware>("your-secret-encryption-code");
Conversion Functions
using LogiBCommon.ConversionHelper;
var conversionFunctions = new ConversionFunctions(systemDefaultSettings);
double convertedWeight = conversionFunctions.ConvertWeight(100, "kg");
double convertedVolume = conversionFunctions.ConvertVolume(50, "m³");
Email Helper
using LogiBCommon.EmailHelper;
var emailHelper = new EmailHelper(smtpSettings);
await emailHelper.SendEmailAsync(to, subject, body);
SMS Helper
using LogiBCommon.SMSHelper;
var smsHelper = new SMSHelper();
await smsHelper.SendSMSAsync(phoneNumber, message);
PDF Helper
using LogiBCommon.PDFHelper;
var pdfHelper = new PDFHelper();
byte[] pdfBytes = pdfHelper.GeneratePDF(htmlContent);
Firebase Notifications
using LogiBCommon.FireBaseNotification;
var firebaseClient = new FirebaseMessagingClient();
await firebaseClient.SendNotificationAsync(token, title, body);
Dependencies
This package depends on:
- AWSSDK.SimpleNotificationService
- Crowley.Logger
- FirebaseAdmin
- Microsoft.AspNetCore.Http
- Newtonsoft.Json
- NLog
- NodaTime
- Npgsql
- Portable.itextsharp.xmlworker
- System.IdentityModel.Tokens.Jwt
- System.Security.Cryptography.Pkcs
- System.Security.Cryptography.Xml
Authors
- Vikram Sankar
-
- Addesso
Company
Software Without Programmers
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For issues and questions, please contact the development team or create an issue in the repository.
| 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
- AWSSDK.SimpleNotificationService (>= 3.7.4.15)
- Crowley.LoadIQLogger (>= 1.0.1)
- FirebaseAdmin (>= 2.4.0)
- Microsoft.AspNetCore.Http (>= 2.3.0)
- Microsoft.AspNetCore.SignalR (>= 1.2.0)
- Microsoft.AspNetCore.SignalR.Core (>= 1.2.0)
- Newtonsoft.Json (>= 13.0.1)
- NLog (>= 4.7.15)
- NodaTime (>= 3.1.0)
- Npgsql (>= 6.0.11)
- Portable.itextsharp.xmlworker (>= 5.5.13.3)
- System.Formats.Asn1 (>= 6.0.1)
- System.IdentityModel.Tokens.Jwt (>= 6.18.0)
- System.Security.Cryptography.Pkcs (>= 6.0.3)
- System.Security.Cryptography.Xml (>= 6.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.