Kavenegar.Unofficial 1.1.3

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

// Install Kavenegar.Unofficial as a Cake Tool
#tool nuget:?package=Kavenegar.Unofficial&version=1.1.3

چرا این پکیج؟

این پکیج به صورت مینیمال بر اساس مستندات کاوه نگار نوشته شده که بر خلاف پکیج رسمی، از معماری دات نت کور استفاده شده. پکیج رسمی از روش قدیمی فراخوانی وب استفاده کرده و پکیج های دیگه ای که هستن نهایتا از httpclient استفاده کردن ولی برای دات نت کور بهینه نشدن(فورک از سورس خود کاوه نگار)

ولی این پکیج از ابتدا نوشته شده، و به پرفورمنس و روباست بودن توجه شده و خیالتون رو از استفاده راحت و طولانی راحت میکنه.

با استفاده از متد AddKavenegar() اینجکت میشه.

به طور مثال :

services.AddKavenegar(a => { a.ApiKey = "APIKey"; a.BaseUrl = "https://api.kavenegar.com/v1"; })

یا سکشن مربوط رو از اپ ستینگ بخونید:

services.AddKavenegar(configuration!.GetSection("KavenegarConfig"))

هرجا لازم بود تو کانستراکتور کلاس زیر رو اینجکت کنید: KavenegarService

یا به صورت دستی هم میتونید نمونه بگیرید، که توصیه نمیکنم چون مدیریت HTTPClient رو باید خودتون انجام بدید.

اگه نیاز به امکانات بیشتری تو این پکیج داشتید درخواست بذارید.

یا اگه خودتون تغییری دادید پول ریکوئست بدید. شاد باشید

Product Compatible and additional computed target framework versions.
.NET 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 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. 
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
1.1.3 453 10/15/2022
1.1.2 378 10/15/2022
1.1.1 412 5/25/2022
1.1.0 351 5/25/2022