You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add async PerformAsync and FlushAsync methods with CancellationToken support (#1170)
* Add async PerformAsync and FlushAsync methods with CancellationToken support
* Refactor replication service and stream extensions for fully async I/O, updating PerformAsync, SessionToken, and ASP.NET Core response handling.
* refactor: rename BigEndian methods and use ArrayPool for buffer allocations in StreamExtensions
* feat: Add async read/write support in ReplicationServlet and corresponding J2N-based async tests in TestStreamExtensions
* Add XML Summary For PerformAsync and remove dupilcate comment code
* Lucene.Net.Tests.Replicator: Refactored to test both synchronous and asynchronous APIs as well as both Startup class and Middleware configurations (when both are supported).
* Lucene.Net.Tests.Replicator: Added an HttpListener-based server so we don't have to rely on Microsoft.AspNetcore.TestHost prior to .NET Core. Bumped Microsoft.AspNetcore.TestHost package to 9.0.8. Refactored tests to separate ASP.NET Core functionality from HttpListener functionality.
* Lucene.Net.Tests.Replicator: Only reference Lucene.Net.Replicator.AspNetCore on .NET Core 8 or higher
* Lucene.Net.Replicator.AspNetCore: Dropped support for all target framworks but net8.0.
* Lucene.Net.Replicator.AspNetCore: Removed PackageReference to transitive dependency System.Text.Encodings.Web, which only existed to bump the package to one without known security vulnerabilities. Bumped Microsoft.AspNetCore.Http.Abstractions to 2.3.0.
* Add IAsyncReplicationServer/IAsyncReplicationResponse, update ReplicationService, Middleware, and TestServer to support async replication with conditional sync/async DI.
* Revert "Add IAsyncReplicationServer/IAsyncReplicationResponse, update ReplicationService, Middleware, and TestServer to support async replication with conditional sync/async DI."
This reverts commit 349621f.
* Revert async interfaces, unify IReplicationService with Perform/PerformAsync, update ReplicationServlet, Middleware, and TestServer to use single interface
---------
Co-authored-by: Shad Storhaug <shad@shadstorhaug.com>
<!-- Features in .NET 5.x, .NET 6.x, .NET 7.x, .NET 8.x, and .NET 9.x only -->
57
58
<PropertyGroupCondition=" $(TargetFramework.StartsWith('net5.')) Or $(TargetFramework.StartsWith('net6.')) Or $(TargetFramework.StartsWith('net7.')) Or $(TargetFramework.StartsWith('net8.')) Or $(TargetFramework.StartsWith('net9.')) ">
server=NewHttpServer(service,mockErrorConfig);// Call like this to use ReplicationServerMiddleware on the specific path /replicate/{shard?}/{action?}, but allow other paths to be served
54
-
#else
55
-
server=NewHttpServer<ReplicationServlet>(service,mockErrorConfig);// Call like this to use ReplicationServlet as a Startup Class
0 commit comments