Levge.Extensions 1.1.45

There is a newer version of this package available.
See the version list below for details.
dotnet add package Levge.Extensions --version 1.1.45
                    
NuGet\Install-Package Levge.Extensions -Version 1.1.45
                    
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="Levge.Extensions" Version="1.1.45" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Levge.Extensions" Version="1.1.45" />
                    
Directory.Packages.props
<PackageReference Include="Levge.Extensions" />
                    
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 Levge.Extensions --version 1.1.45
                    
#r "nuget: Levge.Extensions, 1.1.45"
                    
#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 Levge.Extensions@1.1.45
                    
#: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=Levge.Extensions&version=1.1.45
                    
Install as a Cake Addin
#tool nuget:?package=Levge.Extensions&version=1.1.45
                    
Install as a Cake Tool

<img src="src/Levge.Extensions/icon.png" width="100" height="100" alt="Levge.Extensions logosu" />

Levge.Extensions

NuGet Build


Levge.Extensions, projelerinizde verimlili�i art�rmak amac�yla yayg�n .NET t�rleri i�in geli�tirilmi�, kullan��l� uzant� metotlar�n� (extension methods) i�eren bir k�t�phanedir.

�zellikler

  • ? Task Extensions � �ste�e ba�l� loglama deste�iyle "ate�le ve unut" (fire-and-forget) g�rev �al��t�rma, zaman a��m� (timeout) y�netimi ve toplu i�lem kolayl�klar�
  • ? Object Extensions � JSON serile�tirme, g�venli tip d�n���m� (casting) ve liste i�i kontrol (IsOneOf) gibi yard�mc� metotlar
  • ? Modern API � .NET 8 ve �zeri i�in, nullable referans t�r� tam deste�iyle geli�tirilmi�tir

Kurulum

.NET CLI

dotnet add package Levge.Extensions

Package Manager

Install-Package Levge.Extensions

Kullan�m

Task Extensions (G�rev Uzant�lar�)

// Basit "ate�le ve unut" (fire-and-forget) kullan�m�
task.FireAndForget();

// Loglama i�in ba�lam (context) ad� ile kullan�m
task.FireAndForget("IslemGorevi");

// Logger ile kullan�m
task.FireAndForget(logger);

// Hem logger hem de ba�lam ad� ile kullan�m
task.FireAndForget(logger, "OnemliOperasyon");

// Zaman a��m� (Timeout) belirleme (S�re a��l�rsa TimeoutException f�rlat�r)
await task.TimeoutAfter(TimeSpan.FromSeconds(5));

// Hata durumunda ek i�lem yapma
await task.OnFailure(ex => logger.LogError(ex, "G�rev ba�ar�s�z oldu"));

// G�rev listesini tek seferde bekleme (WhenAll k�sayolu)
await taskList.WhenAll();

Object Extensions (Nesne Uzant�lar�)

// Herhangi bir nesnenin derin kopyas�n� (deep clone) olu�turma
var original = new MyComplexObject();
var clone = original.DeepClone();

// Nesneyi JSON string'e �evirme
string json = original.ToJson();

// Nesnenin belirli de�erlerden biri olup olmad���n� kontrol etme
var status = "Active";
if (status.IsOneOf("Active", "Pending")) 
{
    // ...
}

// G�venli tip d�n���m� (Casting)
object obj = "some string";
var str = obj.As<string>(); // "some string"
var number = obj.As<int?>(); // null (hata f�rlatmaz)

Lisans

MIT Lisans�. Detaylar i�in LICENSE dosyas�na bak�n�z.

Product Compatible and additional computed target framework versions.
.NET 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.  net9.0 is compatible.  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 (2)

Showing the top 2 NuGet packages that depend on Levge.Extensions:

Package Downloads
Levge.Notification.Email

Email notification infrastructure with provider-based extensibility

Levge.Notification.Push

Push notification infrastructure with provider-based extensibility. Supports Firebase, Fake, and custom providers.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.0 99 4/29/2026
2.2.0 100 4/29/2026
2.1.0 98 4/27/2026
2.0.1 101 4/27/2026
1.1.45 121 1/22/2026
1.1.41 214 6/22/2025
1.1.40 195 6/22/2025
1.1.3 192 6/21/2025
1.1.2 176 6/21/2025
1.1.1 184 6/21/2025
1.1.0 268 6/18/2025
1.0.1 271 6/16/2025
1.0.0 225 6/16/2025