Bat.Core 8.0.3

dotnet add package Bat.Core --version 8.0.3
NuGet\Install-Package Bat.Core -Version 8.0.3
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="Bat.Core" Version="8.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bat.Core --version 8.0.3
#r "nuget: Bat.Core, 8.0.3"
#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 Bat.Core as a Cake Addin
#addin nuget:?package=Bat.Core&version=8.0.3

// Install Bat.Core as a Cake Tool
#tool nuget:?package=Bat.Core&version=8.0.3

For use Bat.Core just do it :

1- Install Bat.Core on your project

2- Use it in bussiness logic for example :

public class BaseService : IBaseService
{
    public void UseBatCoreSample()
    {
        FileLoger.Info($"Method Started At {DateTime.Now}");
        FileLoger.CriticalInfo($"Method Started At {DateTime.Now}");

        string randomString = Randomizer.GetUniqueKey(length: 10);
        int randomInteger = Randomizer.GetRandomInteger(length: 6);

        string time = DateTime.Now.ToTime();
        DateTime miladiDate = "1400/12/15".ToDateTime();
        string persianDate = DateTime.Now.ToPersianDate();

        bool validation1 = "https://google.com".IsUrl();
        bool validation2 = "1400/12/15".IsPersianDate();
        bool validation3 = "0080799999".IsNationalCode();

        string encryptedString1 = AesEncryption.Encrypt(plainText: "Encrypt Me");
        string encryptedString2 = AesEncryption.Encrypt(plainText: "Encrypt Me", encryptKey: "EncryptionKey");
        string encryptedString3 = AesEncryption.Encrypt(plainText: "Encrypt Me", encryptKey: "EncryptionKey", salt: "Salt");
    
        string decryptedString1 = AesEncryption.Decrypt(cipherText: encryptedString1);
        string decryptedString2 = AesEncryption.Decrypt(cipherText: encryptedString2, encryptKey: "EncryptionKey");
        string decryptedString3 = AesEncryption.Decrypt(cipherText: encryptedString3, encryptKey: "EncryptionKey", salt: "Salt");

        var newObject = new
        {
            Id = 1,
            FirstName = "Mehran",
            LastName = "Norouzi"
        };
        string serialized = newObject.SerializeToJson();
        object deSerialized = serialized.DeSerializeJson();

    }
}
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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 is compatible.  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 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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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 (9)

Showing the top 5 NuGet packages that depend on Bat.Core:

Package Downloads
Bat.EntityFrameworkCore

For Contact Us Please Send Mail Or Call To : Tel : +989301919109 Mail : mehrannoruzi@gmail.com

Bat.Http

This Package Contain Useful Library And Extention Method For Easy Develop High Tech .Net Application. ForExample : Implementation Of HttpRequestTools, ClientInfo, ExtentionMethod, ...

Bat.AspNetCore

This Package Contain Useful Library And Extention Method For Easy Develop High Tech Asp.Net Core Mvc Application. ForExample : Implementation Of Authentication, Authorization, TagHelpers, CustomAttribute, ResponseCache, ExtensionMethod, ...

Bat.Di

This Package Contain Useful Library And Extention Method For Dependency Injection in High Tech .Net Application. ForExample : ExtensionMethods For Dynamically Register Services And Componnent Base On Inherit From ITransientInjection, IScopedInjection Or ISingletonInjection

Bat.Cache

This Package Contain Useful Library And Extention Method For Easy Develop High Tech .Net Core Application. ForExample : Implementation Of Runtime Caching, MemoryCache, ExtensionMethods, ...

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.3 113 3/6/2024
8.0.2 130 3/3/2024
8.0.1 183 1/22/2024
8.0.0 217 12/1/2023
7.0.4 282 5/13/2023
7.0.3 401 2/28/2023
7.0.2 395 2/4/2023
7.0.0 534 12/5/2022
6.0.22 204 8/21/2023
6.0.21 360 8/19/2023
6.0.2 694 3/28/2022
6.0.1 2,163 3/27/2022
6.0.0 723 3/27/2022
1.1.8 3,750 12/26/2021
1.1.7 618 7/13/2021
1.1.5 354 7/13/2021
1.1.4 2,522 7/11/2021
1.1.3 851 4/14/2021
1.1.2 961 4/8/2021
1.1.1 359 4/7/2021
1.1.0 2,141 3/26/2021
1.0.9 398 3/10/2021
1.0.8 914 2/7/2021
1.0.7 1,640 2/3/2021
1.0.6 780 1/30/2021
1.0.4 2,854 10/19/2020
1.0.3 464 10/19/2020
1.0.2 673 10/11/2020
1.0.1 665 10/11/2020

- Upgrade to net8.0 and C#12.0
- Switch to System.Text.Json for serialization
- Add AesEncryption and HashGenerator