Skip to content

Obsolete IPNetwork #46157

@Tratcher

Description

@Tratcher

The BCL is planning a replacement for this type: dotnet/runtime#79946

We should consume theirs when available and obsolete ours.


public IList<IPNetwork> KnownNetworks { get; } = new List<IPNetwork>() { new IPNetwork(IPAddress.Loopback, 8) };

Consider adding an implicit converter to minimize the breaking changes in the short term.

Proposed API

namespace Microsoft.AspNetCore.Builder;
public class ForwardedHeadersOptions
{
+    [Obsolete(...)]
     public IList<Microsoft.AspNetCore.HttpOverrides.IPNetwork> KnownNetworks { get; }

+    public IList<System.Net.IPNetwork> KnownIPNetworks { get; }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-approvedAPI was approved in API review, it can be implementedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions