- 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.
18 lines
444 B
C#
18 lines
444 B
C#
namespace StellaOps.Router.Common.Models;
|
|
|
|
/// <summary>
|
|
/// Represents a claim requirement for endpoint authorization.
|
|
/// </summary>
|
|
public sealed record ClaimRequirement
|
|
{
|
|
/// <summary>
|
|
/// Gets the claim type that must be present.
|
|
/// </summary>
|
|
public required string Type { get; init; }
|
|
|
|
/// <summary>
|
|
/// Gets the optional claim value that must match.
|
|
/// </summary>
|
|
public string? Value { get; init; }
|
|
}
|