MagnusMinds.Utility 2.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package MagnusMinds.Utility --version 2.0.2                
NuGet\Install-Package MagnusMinds.Utility -Version 2.0.2                
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="MagnusMinds.Utility" Version="2.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MagnusMinds.Utility --version 2.0.2                
#r "nuget: MagnusMinds.Utility, 2.0.2"                
#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 MagnusMinds.Utility as a Cake Addin
#addin nuget:?package=MagnusMinds.Utility&version=2.0.2

// Install MagnusMinds.Utility as a Cake Tool
#tool nuget:?package=MagnusMinds.Utility&version=2.0.2                

This package is useful for the business logic to more secure and standardise the code. It's useful to test how our controller behaves based on the validity of the inputs and validate its response based on the result of the operation it performs.

APIDefaultResponseModel

Return different-different types of response

CommonHelper

Checking email

IPAddress validations

Return random Integer/Digit

Checking strings are null or empty

Compares two arrays

Encryption

Create Encrypt and decrypt to your string or JSON

EnumExtention

Convert List to Oject

HttpRequestExtensions

Provides extension methods

JsonSerializeDeserializer

Convert JSON String to Object and Object to JSON

Session Extensions

Extensions of Session

WebHelper

Gets whether the request is made with AJAX

Get IP address from HTTP context

Check whether current HTTP request is available

XMLSerializeDeSerialize

Serializes an object

De-serializes an XML file into an object list

Serializes and Deserializes datetime

Encode and decode your attributes

EmailSender

Send an email by sending email Configuration

You need to Just add configuration in your appSetting.json file

"EmailConfiguration": {
"From": "YOUR_EMAIL_ADDRESS",
"SmtpServer": "smtp.gmail.com",
"Port": PORT_NO,
"Username": "YOUR_EMAIL_ADDRESS",
"Password": "YOUR_EMAIL_PASSWORD"
}

In your starup.cs file

services.ConfigureEmail(Configuration.GetSection("EmailConfiguration").Get<EmailConfiguration>());

In your controller file

var message = new MimeMessage();
message.To.Add(new MailboxAddress(firstname,email));
message.Body = new TextPart("Plain") { Text = "Hello" };
try
{
     await _emailSender.SendEmailAsync(message);
}
catch (Exception ex)
{
     throw ex;
}

License

MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
9.0.13 44 11/13/2024
8.0.12 3,262 1/17/2024
7.0.12 120 1/17/2024
6.0.12 127 1/17/2024
6.0.11 2,552 6/26/2023
6.0.10 1,034 3/29/2023
6.0.8 219 3/16/2023
5.0.12 110 1/17/2024
5.0.11 146 6/26/2023
5.0.10 230 3/29/2023
5.0.8 226 3/16/2023
5.0.7 345 12/30/2022
5.0.6 942 4/29/2022
5.0.5 510 3/29/2022
5.0.3 568 2/25/2022
5.0.2 525 2/18/2022
5.0.1 583 2/4/2022
5.0.0 574 2/3/2022
3.1.12 113 1/17/2024
3.1.11 158 6/26/2023
3.1.10 195 3/29/2023
3.1.8 203 3/16/2023
3.1.7 265 12/30/2022
3.1.6 473 4/29/2022
3.1.4 526 3/29/2022
3.1.3 542 2/25/2022
3.1.2 548 2/24/2022
3.1.1 555 2/4/2022
3.1.0 562 2/3/2022
3.0.12 120 1/17/2024
3.0.11 146 6/26/2023
3.0.10 191 3/29/2023
3.0.8 228 3/16/2023
3.0.7 295 12/30/2022
3.0.6 476 4/29/2022
3.0.4 546 3/29/2022
3.0.3 526 2/25/2022
3.0.2 568 2/24/2022
3.0.1 572 2/4/2022
3.0.0 557 2/4/2022
2.1.12 113 1/17/2024
2.1.11 173 6/26/2023
2.1.10 196 3/29/2023
2.1.8 210 3/16/2023
2.1.7 271 12/30/2022
2.1.6 478 4/29/2022
2.1.5 508 3/29/2022
2.1.4 505 2/25/2022
2.1.3 519 2/24/2022
2.1.2 552 2/4/2022
2.1.0 580 2/4/2022
2.0.12 117 1/17/2024
2.0.11 131 6/26/2023
2.0.10 193 3/29/2023
2.0.8 207 3/16/2023
2.0.7 292 12/30/2022
2.0.6 410 4/29/2022
2.0.4 402 3/29/2022
2.0.3 417 2/25/2022
2.0.2 414 2/24/2022
2.0.1 432 2/4/2022
2.0.0 427 2/4/2022