Class RouteInfo

Namespace
Cratis.Arc.Http
Assembly
Cratis.Arc.Core.dll

Represents information about a registered route.

public record RouteInfo : IEquatable<RouteInfo>
Inheritance
RouteInfo
Implements
Inherited Members
Extension Methods

Constructors

RouteInfo(RouteInfo)

protected RouteInfo(RouteInfo original)

Parameters

original RouteInfo

RouteInfo(string, string, EndpointMetadata?)

Represents information about a registered route.

public RouteInfo(string Method, string Pattern, EndpointMetadata? Metadata)

Parameters

Method string

The HTTP method (GET, POST, etc.).

Pattern string

The route pattern.

Metadata EndpointMetadata

The endpoint metadata.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Metadata

The endpoint metadata.

public EndpointMetadata? Metadata { get; init; }

Property Value

EndpointMetadata

Method

The HTTP method (GET, POST, etc.).

public string Method { get; init; }

Property Value

string

Pattern

The route pattern.

public string Pattern { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out EndpointMetadata?)

public void Deconstruct(out string Method, out string Pattern, out EndpointMetadata? Metadata)

Parameters

Method string
Pattern string
Metadata EndpointMetadata

Equals(RouteInfo?)

public virtual bool Equals(RouteInfo? other)

Parameters

other RouteInfo

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RouteInfo?, RouteInfo?)

public static bool operator ==(RouteInfo? left, RouteInfo? right)

Parameters

left RouteInfo
right RouteInfo

Returns

bool

operator !=(RouteInfo?, RouteInfo?)

public static bool operator !=(RouteInfo? left, RouteInfo? right)

Parameters

left RouteInfo
right RouteInfo

Returns

bool