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()
The
IPGlobalPropertiesabstract class has the following APM pattern/synchronous methods: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: