Unwired.Commons 0.1.13

dotnet add package Unwired.Commons --version 0.1.13
                    
NuGet\Install-Package Unwired.Commons -Version 0.1.13
                    
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="Unwired.Commons" Version="0.1.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Unwired.Commons" Version="0.1.13" />
                    
Directory.Packages.props
<PackageReference Include="Unwired.Commons" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Unwired.Commons --version 0.1.13
                    
#r "nuget: Unwired.Commons, 0.1.13"
                    
#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.
#:package Unwired.Commons@0.1.13
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Unwired.Commons&version=0.1.13
                    
Install as a Cake Addin
#tool nuget:?package=Unwired.Commons&version=0.1.13
                    
Install as a Cake Tool

Unwired Commons

Open-source Commons Features developed to facilitate the creation of a new project in .Net, providing some commons features.

<br />

Something is missing? Submit a new product feature request using the issues tracker..

✨ Using the library

👉 Step 1 - Install library into project

  • Package Manager
$ Install-Package Unwired.Commons
  • .Net CLI
$ dotnet add package Unwired.Commons

<br />

👉 Step 2 - Register Service In program.cs, add the call for services.AddUnwiredCommons. This register it's necessary for use Criptography Methods.

IHost host = Host.CreateDefaultBuilder(args)
                        .ConfigureServices(services =>
                        {
                            var configuration = services.BuildServiceProvider().GetService<IConfiguration>();
                            services.AddUnwiredCommons();        
                            services.AddHostedService<Worker>();
                        })
                        .Build();
host.Run();

👉 Step 3 - Configure your AppSeettings Add te group of properties em AppSetting.json file. Warning: For Production use Environment Variables and set differentes values for them.

  "Criptography": {
    "Salt": "dd528dc1-656b-4211-afb0-acd4066deebf",
    "Key": "72743784-74a8-44d4-8b76-437a8c4d1c0c",
    "Interations": 1000
  }

👉 Step 4 - Using Criptography Methods

    private readonly ILogger<Worker> _logger;
    private readonly ICriptographyMethods _criptographyMethods; //private variable for use in object

    public Worker(ILogger<Worker> logger, ICriptographyMethods criptographyMethods)
    {
        _logger = logger;
        _criptographyMethods = criptographyMethods;  //Private variable receive te value from Dependency Injection 
    }

    protected override async Task ExecuteAsync(CancellationToken stoppingToken)
    {
            var myPlainText = "123456";
            var myCriptoText = _criptographyMethods.Encrypt(myPlainText); //text encryption
            var isEqual = _criptographyMethods.CompareText(myPlainText, myPlainText); //Plain text versus ciphertext comparison
    }

👉 Step 5 - Using Other Methods Add then using "using Unwired.Commons;"

    var myPathFile = @"~\Path\ImportXml.Xml";
    var result = UnwiredMethods.DeserializeXmlFromFile<MyXml>(myPathFile);
        var myStringXml = @"<?xml version=""1.0"" ?>
                            <MyXml>
                                <Name>John Constatine</frase>
                            </MyXml>";
        var result = UnwiredMethods.DeserializeXmlFromString<MyXml>(myStringXml);

All other existing methods and those that may be added in the future will be listed on the Wiki.

👉 Step 6 - Using Extensions Methods

All other existing extensions methods and those that may be added in the future will be listed on the Wiki.

✨ Contacts

📧 Email - leo.cavalheiro.ti@gmail.com

Product Compatible and additional computed target framework versions.
.NET 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 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.  net9.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Unwired.Commons:

Package Downloads
Unwired.Domain

Base Domain

Unwired.Infra.Bus

Bus Configurations with MediatR

Unwired.Jwt

Configurations JWT

Unwired.Infra.Accessor

Configurações e Modelos de Accessors

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.13 401 5/28/2023
0.1.12 289 5/28/2023
0.1.11 275 5/28/2023
0.1.10 272 5/27/2023
0.1.9 283 5/27/2023
0.1.7 358 5/6/2023
0.1.6 344 3/7/2023
0.1.5 490 3/1/2023
0.1.4 381 2/24/2023
0.1.3 589 2/18/2023
0.1.2 377 2/18/2023
0.1.1 387 2/13/2023
0.1.0 390 2/12/2023
0.0.20 512 12/31/2022
0.0.19 531 12/29/2022
0.0.18 529 12/28/2022
0.0.17 494 12/27/2022
0.0.16 482 12/27/2022
0.0.15 437 12/27/2022
0.0.14 439 12/27/2022
Loading failed