Implement InMemory Transport Layer for StellaOps Router
- Added InMemoryTransportOptions class for configuration settings including timeouts and latency. - Developed InMemoryTransportServer class to handle connections, frame processing, and event management. - Created ServiceCollectionExtensions for easy registration of InMemory transport services. - Established project structure and dependencies for InMemory transport library. - Implemented comprehensive unit tests for endpoint discovery, connection management, request/response flow, and streaming capabilities. - Ensured proper handling of cancellation, heartbeat, and hello frames within the transport layer.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using StellaOps.Router.Common.Enums;
|
||||
|
||||
namespace StellaOps.Router.Common.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the outcome of a routing decision.
|
||||
/// </summary>
|
||||
public sealed record RoutingDecision
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the selected endpoint.
|
||||
/// </summary>
|
||||
public required EndpointDescriptor Endpoint { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the selected connection.
|
||||
/// </summary>
|
||||
public required ConnectionState Connection { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the transport type to use.
|
||||
/// </summary>
|
||||
public required TransportType TransportType { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the effective timeout for the request.
|
||||
/// </summary>
|
||||
public required TimeSpan EffectiveTimeout { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user