Background and motivation
This was already approved in #14336, but reverted in #67253 because this requires some more work.
See #64860 (comment)
API Proposal
namespace System.Net.NetworkInformation {
public class Ping {
public Task<PingReply> SendPingAsync(IPAddress address, TimeSpan timeout, byte[]? buffer = null, PingOptions? options = null, CancellationToken cancellationToken = default);
public Task<PingReply> SendPingAsync(string hostNameOrAddress, TimeSpan timeout, byte[]? buffer = null, PingOptions? options = null, CancellationToken cancellationToken = default);
}
}
/cc @danmoseley
/cc @stephentoub
Background and motivation
This was already approved in #14336, but reverted in #67253 because this requires some more work.
See #64860 (comment)
API Proposal
/cc @danmoseley
/cc @stephentoub