./nugetz

#taha

1 package tagged with “taha

pkg

TahaMucasiroglu.Return

[TR] IReturn ve IReturn<T> temel hata/success kontrol altyapısı sağlayan bu paket, uygulama katmanlarınızda tek tip sonuç nesneleri kullanarak kod tekrarını azaltmanızı ve merkezi bir hata/yönetim stratejisi oluşturmanızı amaçlar. Geleneksel metot imzalarından dönen ham veriler veya null kontrolleri yerine, her bir işlem çağrısının sonucu olarak en azından bir IReturn nesnesi döndürülür. Bu sayede: - Kodunuzda “Status” kontrolü, hata mesajı ve istisna bilgisi tek bir objede toplanır. - IReturn<T> sayesinde, veri taşıyan operasyonda hem “Status” hem de “Data” değerlerini birlikte kontrol edebilirsiniz. - NullDataSuccess ve NullDataError gibi ön tanımlı tipler ile filtre sonuçlarında “hata yok ama veri null” veya “hata ile veri null” senaryolarını kolayca yönetebilirsiniz. - Tüm başarı ve hata senaryoları, SuccessReturn ve ErrorReturn sınıfları kullanılarak standartlaştırılmıştır. - Genişleyebilir yapısı sayesinde ilerleyen sürümlerde logging, JSON yapılandırma ve daha ileri seviye hata yönetimi kolayca eklenebilir. - SOLID ve Clean Code prensiplerine uygun, immutable record tipleriyle yazıldığı için thread-safe ve bakımı kolay bir altyapı sunar. Bu paket yalnızca .NET 8 ve üzeri sürümlerle uyumludur. NuGet üzerinden kolayca referans alınarak kullanılabilir. Uygulamanızda ihtiyaç duyduğunuz tüm “başarı/başarısızlık” dönüşlerini tek bir standart içinde toplar, geliştirici deneyimini iyileştirirken hata ayıklamayı da basitleştirir. [EN] This package provides the fundamental error/success handling infrastructure via IReturn and IReturn<T> interfaces, aiming to reduce code repetition and establish a centralized result management strategy across your application layers. Instead of returning raw data or performing null checks directly, every method invocation returns at least an IReturn object. With this approach: - The “Status” check, error message, and exception details are encapsulated in a single object. - IReturn<T> allows you to handle both “Status” and “Data” values together in data-carrying operations. - Predefined types such as NullDataSuccess and NullDataError make it effortless to handle “no error but data is null” or “error with null data” scenarios in filtering operations. - All success and error scenarios are standardized via the SuccessReturn and ErrorReturn classes. - Its extensible design enables easy addition of logging, JSON configuration, and advanced error management in future versions. - Written using immutable record types following SOLID and Clean Code principles, it offers a thread-safe and maintainable infrastructure. This package is compatible only with .NET 8 and later versions. It can be referenced via NuGet to provide a unified standard for all “success/failure” returns in your application, enhancing developer experience and simplifying debugging.

v1.0.12605
IReturnReturnErrorHandlingCommonLibTaha