Skip to content

Current proposed version of System.Net.NetworkInformation 4.1 contains APM and synchronous pattern methods #15519

@SidharthNabar

Description

@SidharthNabar

The IPGlobalProperties abstract class has the following APM pattern/synchronous methods:

public virtual System.IAsyncResult BeginGetUnicastAddresses(System.AsyncCallback callback, object state) 
public virtual System.Net.NetworkInformation.UnicastIPAddressInformationCollection EndGetUnicastAddresses(System.IAsyncResult asyncResult)
public virtual System.Net.NetworkInformation.UnicastIPAddressInformationCollection GetUnicastAddresses()

These need to be removed in order for this contract to better align with the other APIs in .NET Core. Further, an equivalent method that follows the TPL pattern already exists in this class and should be the one that is used for this functionality:

public virtual System.Threading.Tasks.Task<System.Net.NetworkInformation.UnicastIPAddressInformationCollection> GetUnicastAddressesAsync()

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions