Skip to content

Rename parameter rateLimitPolicy to rateLimitPolicyName in Metrics endpoint #609

@ziagham

Description

@ziagham

What version of FlowSynx?

1.2.2

Describe the bug

In the Metrics class, the Map method currently defines the parameter as rateLimitPolicy, while the base class (EndpointGroupBase) uses rateLimitPolicyName.

To maintain consistency and avoid potential confusion or mismatched overrides, the parameter should be renamed to match the base class definition.

File: src/FlowSynx/Endpoints/Metrics.cs
Method: Map

Proposed change

public override void Map(WebApplication app, string rateLimitPolicyName)

Rationale

  • Ensures consistency with the base class method signature.
  • Improves code readability and prevents potential confusion when overriding methods.
  • Aligns with standard naming conventions in the codebase.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions