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 246 3/6/2024
8.0.2 198 3/3/2024
8.0.1 393 1/22/2024
8.0.0 278 12/1/2023
7.0.4 339 5/13/2023
7.0.3 483 2/28/2023
7.0.2 460 2/4/2023
7.0.0 645 12/5/2022
6.0.22 272 8/21/2023
6.0.21 465 8/19/2023
6.0.2 749 3/28/2022
6.0.1 2,505 3/27/2022
6.0.0 765 3/27/2022
1.1.8 3,954 12/26/2021
1.1.7 659 7/13/2021
1.1.5 376 7/13/2021
1.1.4 2,727 7/11/2021
1.1.3 911 4/14/2021
1.1.2 1,018 4/8/2021
1.1.1 385 4/7/2021
1.1.0 2,264 3/26/2021
1.0.9 426 3/10/2021
1.0.8 975 2/7/2021
1.0.7 1,749 2/3/2021
1.0.6 839 1/30/2021
1.0.4 3,007 10/19/2020
1.0.3 491 10/19/2020
1.0.2 703 10/11/2020
1.0.1 691 10/11/2020

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