Found 53 packages
A small library that implements an improved version of System.Threading.CancellationToken with support for removable registrations, to allow for garbage collection in the presence of long-lived tokens, plus some related utilities. Motivation: cancellation tokens can be the source of memory "leaks", because an unbounded number of completed operations may have registered now-pointless callbacks on a token that can't be released or cancelled. The callbacks may reference all kinds of data, preventing effective garbage collection. Using a Lifetime allows fixing these issues because callback registrations can be given lifetimes of their own. Additional utilities: LifetimeSource, LifetimeExchanger, DisposableLifetime, Max, Min, CreateDependentSource.
Some useful extensions to make integration of MediatR into an ASP.NET Core Application easier. Currently the only feature is automatically passing the HttpContext.RequestAborted CancellationToken to handlers
Easy-to-use library for common async IO file system operations. Implemented operations are fully asynchronous and do not use threads from thread pool. AsyncIO provides decent control over async execution (e.g. support of CancellationToken) and provides API for specifying encoding.
Adds global cancellations to GDTask.Nuget
A Metalama weaver that automatically adds CancellationToken to your method definitions and your method calls.
Features: - Very simple use in several lines - all the code for obtaining the data is already written and working in a background thread - It's event based class - available TextMessageReceived and BinaryMessageReceived events - Also available Connected, Disconnected and ExceptionOccurred events - Right async methods that support CancellationToken's - Auto Reconnect - Open to suggestions and problems on the github
Features: - Very simple use in several lines - all the code for obtaining the data is already written and working in a background thread - It's event based class - available TextMessageReceived and BinaryMessageReceived events - Also available Connected, Disconnected and ExceptionOccurred events - Right async methods that support CancellationToken's - Auto Reconnect - Open to suggestions and problems on the github
Adds IAsyncOrganizationService and IAsyncDiscoveryService with async versions of interface methods to the CRM Dynamics SDK. When you call "IOrganizationService.Execute(request)" for instance, it blocks the current thread until the reply is received from the Dynamics CRM server. In case when multiple such operations are running in parallel the app will use too many worker threads (because they are blocked) and will start suffer from performance degradation due to thread exhaustion. To avoid this issue, it's better not to block threads and process server responses as soon as they are available. This extension library allows you to do this using Task Parrallel Library (TPL) and asynchronous calls to Dynamics CRM server, e.g. "await IAsyncOrganizationService.ExecuteAsync(request, cancellationToken)". To use you need to create an async version of the client (Microsoft.Xrm.Sdk.Client.Async.AsyncOrganizationServiceProxy, Microsoft.Xrm.Sdk.Client.Async.AsyncDiscoveryServiceProxy, Microsoft.Xrm.Sdk.WebServiceClient.Async.OrganizationWebProxyAsyncClient, Microsoft.Xrm.Sdk.WebServiceClient.Async.DiscoveryWebProxyAsyncClient) which does asynchronous WCF calls to the service. GitHub project: https://github.com/tyrotoxin/Microsoft.Xrm.Sdk.Async
Async Dapper Extensions which allow passing CancellationToken into Dapper
Comprehensive PDF toolkit for .NET — find/replace, merge, split, build, form filling, redaction, image editing, watermark, optimization, digital signatures, and PDF/A compliance. Zero external dependencies. Operates directly on PDF content streams. Features: text find/replace (regex, case-insensitive, whole-word, width-aware fitting), PDF merging (with page range selection), page splitting/extraction, fluent document builder (text, JPEG/PNG images, shapes), structured text extraction (with positions and font data), form filling (AcroForm text/checkbox/choice fields), text and area redaction, image finding and replacement (JPEG/PNG, by index or page range), text watermarks (configurable position, font size, color, opacity, page selection), stream compression and object deduplication, digital signatures (PKCS#7, net8.0), PDF/A validation and conversion (1b/2b/3b), document inspection. The netstandard2.0 build is compatible with .NET Framework 4.6.1+, .NET Core 2.0+, and .NET 5/6/7/8/9/10+. The net8.0 build adds digital signature support and is used by .NET 8, 9, 10, and later. NuGet resolves automatically. Made in USA.
A dead man's switch is designed to detect a worker task that is no longer making progress and cancel it. It does this by cancelling a CancellationToken that is provided to the worker from the start. In turn, the process is responsible for notifying the dead man's switch in a periodic fashion to prevent its own cancellation.
High-performance library for downloading, parsing, and utilizing GeoNames.org data. Features async/await with CancellationToken support, Memory/Span optimizations for minimal allocations, and proper HttpClient management. Supports reverse geocoding, spatial searches, and file I/O operations. .NET 8 compatible.
Production-grade HTTP API client with runtime proxy generation, automatic retry, CancellationToken support, file uploads, form data, response headers, and per-request timeouts. A feature-rich, extensible alternative to Refit.
1.2.1 - Carbon.Common version update 1.2.0 - Net8 Supported 1.1.O - Carbon.Common added CancellationToken to all applicable methods in ITimeSeriesEntityRepository 1.0.5 - Carbon.Common updated and IQueryable OrderBy extension method bug fixed 1.0.4 - Carbon.Common updated and nested ordering achieved 1.0.3 - Includes abstractions for any kind of TimeSerie-based Databases.
Package Description
- 3.6.5 * ToLimitedListEntityFilteredWithSolutionAsync,ToOptimizedLimitedListEntityFilteredWithSolutionAsync methods has been added. - 3.6.4 * Added cancellation token support to EFExtensions async methods. *ToPagedListEntityFilteredWithSolutionAsync, FirstOrDefaultEntityFilteredWithSolutionAsync, ToPagedListEntityAsync - 3.6.3 * Carbon.Common version update - 3.6.2 * IncludeSolutionRelation query extension has been changed for performance. - 3.6.1 * The input parameter type of the FindAsync method has been changed. - 3.6.0 * CancellationToken handling changed on EFRepository and EFTenantManagetTenantRepository classes. - 3.5.2 * ToPagedListEntityFilteredWithSolutionAsync method added to EFExtensions * ToPagedListEntityFilteredWithSolution method client side filtering fixed - 3.4.1 * AsEnumerable usage removed from ToPagedListEntityFilteredWithSolution method. - 3.4.0 * Dotnet 8 and EntityFrameworkCore 8 support added. - 3.3.5 * WhereContains supported Equals method by "useTrEnSearch" property in overloaded method - 3.3.4 * WhereContains supported Equals method by "useTrEnSearch" property - 3.3.3 * New functions with CancellationToken have been added in Repositories. - 3.3.2 * Selector and CancellationToken properties added in Repositories - 3.3.1 * Add WhereContains extensions method fixed - 3.3.0 * Add WhereIf and WhereIfContains extensions method - 3.2.1 * WhereContains overloaded - 3.2.0 * WhereContains use to AndAlso or OrElse - 3.1.7 * WhereContains or extension change to and - 3.1.6 * WhereContains extension method bug resolved - 3.1.5 * Upgrade Carbon.PagedList (Remove pageSize and pageNumber validation check) - 3.1.3 * Added new extension method to EFExtensions (ToPagedListEntityFilteredWithSolution, ToPagedListEntityAsync, WhereContains) - 3.1.2 * Refactor ownership filtering logic; include 'OwnerType.None' in conditions for more comprehensive permission assessment. - 3.1.1 * Fixed EFExtensions FirstOrDefaultEntity methods. Null check condition is added for the Relation object - 3.1.0 * Added a new method(RemoveSolutions) to remove from EntitySolutionRelation during the DeleteBulk process - 3.0.0 * Dotnet 6 and EntityFrameworkCore 6 support added. - 2.5.1 *ConnectToSolution method on repositoryBase now allows entities to be removed from any solutions altogether. - 2.5.0 *SoftDeleteConstraint which checks entity relations on soft delete, added - 2.4.1 *Removed unnecessary and problematical usings -2.4.0 *Read-Only Context and Repository support added in order to implement CQRS over replicated SQL servers -2.3.8 *Some performance improvements on Tenant Management EF Extensions and bug fixes -2.3.0 *IEnumerable extensions added for Tenant Management EF Extensions -2.2.0 *EFTenantManagetTenantRepository Added for ITenantRepository supported repos -2.1.1 *FilteredIndex Error on EntitySolutionRelation in PostgreSQL mitigated -2.1.0 * Compatible with Carbon.WebApplication Goduser feature -2.0.0 * Entity Framework Core 5 support added. ExecuteProcedureSql added 1.2.8 UpdatedDate,deletedDate set for soft deletion 1.2.6
Production-grade HTTP API client with runtime proxy generation, automatic retry, CancellationToken support, file uploads, form data, response headers, and per-request timeouts. A feature-rich, extensible alternative to Refit.
Functional programming library for .NET with Option, Result, Either, Validation, Try, RemoteData, NonEmptyList, Writer, Reader, State, and IO monads. Features async/await support with CancellationToken, LINQ query syntax, zero dependencies, Roslyn analyzers, source generators for discriminated unions, ASP.NET Core and EF Core integrations.
Простая, потокобезопасная шина событий для .NET с поддержкой синхронной и асинхронной обработки, отмены подписок, логгирования и CancellationToken. Идеальна для DDD и Clean Architecture.
Modernized fork of Bitbucket.Net — C# client for Bitbucket Server (Stash) REST API. Adds streaming, CancellationToken support, System.Text.Json, typed exceptions, and Bitbucket Server 9.0+ compatibility.