Unwired.Commons
0.1.13
dotnet add package Unwired.Commons --version 0.1.13
NuGet\Install-Package Unwired.Commons -Version 0.1.13
<PackageReference Include="Unwired.Commons" Version="0.1.13" />
<PackageVersion Include="Unwired.Commons" Version="0.1.13" />
<PackageReference Include="Unwired.Commons" />
paket add Unwired.Commons --version 0.1.13
#r "nuget: Unwired.Commons, 0.1.13"
#:package Unwired.Commons@0.1.13
#addin nuget:?package=Unwired.Commons&version=0.1.13
#tool nuget:?package=Unwired.Commons&version=0.1.13
Unwired Commons
Open-source Commons Features developed to facilitate the creation of a new project in .Net, providing some commons features.
- 👉 Nuget Package -
nuget page
<br />
Something is missing? Submit a new
product feature requestusing 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 | Versions 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. |
-
net7.0
- Microsoft.Extensions.Configuration.Abstractions (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Unwired.Models (>= 0.1.5)
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 |