public static SocketsHttpHandler CreateSocketsHttpHandler()All Types / Faultline.Interception
class SimNetworkHooks
public static class SimNetworkHooks
Interception targets for .NET networking and HTTP clients. Routes HttpClient and SocketsHttpHandler traffic over SimNetwork when running inside a Faultline simulation.
Methods
public static HttpClient CreateHttpClient()public static Task<IPAddress[]> GetHostAddressesAsync(string hostNameOrAddress)public static Task<IPAddress[]> GetHostAddressesAsync(string hostNameOrAddress, CancellationToken cancellationToken)public static Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress)public static async Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress, CancellationToken cancellationToken)