Class ApiGatewayV2RouterConfig

Configuration settings shared by the AWS Lambda router adapters.

Inheritance
object
RouterConfig
ApiGatewayV2RouterConfig
Implements
IEquatable<RouterConfig>
IEquatable<ApiGatewayV2RouterConfig>
Inherited Members
RouterConfig.MatchingPrecedence
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: NanoRoute.AwsLambda
Assembly: NanoRoute.AwsLambda.dll
Syntax
public sealed record ApiGatewayV2RouterConfig : RouterConfig, IEquatable<RouterConfig>, IEquatable<ApiGatewayV2RouterConfig>
Examples
builder.ConfigureRouting(config => config with
{
    LambdaTimeoutBuffer = TimeSpan.FromSeconds(2)
});

Constructors

ApiGatewayV2RouterConfig()

Declaration
public ApiGatewayV2RouterConfig()

Properties

EqualityContract

Declaration
protected override Type EqualityContract { get; }
Property Value
Type Description
Type
Overrides
RouterConfig.EqualityContract

LambdaTimeoutBuffer

Gets or sets the amount of time reserved before the Lambda invocation timeout is reached.

Declaration
public TimeSpan LambdaTimeoutBuffer { get; init; }
Property Value
Type Description
TimeSpan
Examples
builder.ConfigureRouting(config => config with
{
    LambdaTimeoutBuffer = TimeSpan.FromSeconds(2)
});
Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown when the assigned value is negative.

Methods

Equals(ApiGatewayV2RouterConfig?)

Declaration
public bool Equals(ApiGatewayV2RouterConfig? other)
Parameters
Type Name Description
ApiGatewayV2RouterConfig other
Returns
Type Description
bool

Equals(RouterConfig?)

Declaration
public override sealed bool Equals(RouterConfig? other)
Parameters
Type Name Description
RouterConfig other
Returns
Type Description
bool
Overrides
RouterConfig.Equals(RouterConfig)

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
RouterConfig.Equals(object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
RouterConfig.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected override bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
Overrides
RouterConfig.PrintMembers(StringBuilder)

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
RouterConfig.ToString()

Operators

operator ==(ApiGatewayV2RouterConfig?, ApiGatewayV2RouterConfig?)

Declaration
public static bool operator ==(ApiGatewayV2RouterConfig? left, ApiGatewayV2RouterConfig? right)
Parameters
Type Name Description
ApiGatewayV2RouterConfig left
ApiGatewayV2RouterConfig right
Returns
Type Description
bool

operator !=(ApiGatewayV2RouterConfig?, ApiGatewayV2RouterConfig?)

Declaration
public static bool operator !=(ApiGatewayV2RouterConfig? left, ApiGatewayV2RouterConfig? right)
Parameters
Type Name Description
ApiGatewayV2RouterConfig left
ApiGatewayV2RouterConfig right
Returns
Type Description
bool

Implements

IEquatable<T>
IEquatable<T>
In this article
Back to top Generated by DocFX